<debug target crashed> error when selecting date in <input type='date'>

笑着哭i 提交于 2019-12-24 16:51:57

问题


I have the following simple .dart and .html files

.dart

//import 'dart:html';

import 'package:polymer/polymer.dart';

/// A Polymer `<main-app>` element.
@CustomTag('main-app')
class MainApp extends PolymerElement {

  @observable DateTime today = new DateTime.now();
  @observable String aDate = '';

  /// Constructor used to create instance of MainApp.
  MainApp.created() : super.created();


  void onChangeFired() {
    print(aDate);
  }
}

.html

<!-- import polymer-element's definition -->
<link rel="import" href="../../packages/polymer/polymer.html">

<link rel="import" href="../../packages/paper_elements/paper_input.html">

<polymer-element name="main-app">
  <template>
    <style>
      :host {
        display: block;
      }
    </style>

    <input type='date' value='{{aDate}}'
     on-change='{{onChangeFired}}' id='time' class='margin-lb5px'>

  </template>
  <script type="application/dart" src="main_app.dart"></script>
</polymer-element>

Running the app in Dartium displays the calendar dropdown. However, each time I select a date, the application crasshes (exits) after printing the selected date with the following

2005-02-08 (:1)
<debug target crashed>

Nothing else is displyed in the console.

I created a new new polymer-app using Stagehand with the same result. Nothing else is there in the application.

This problem is present in the last two Dart Dev updates - I am currently using Dart 1.9.0-dev.9.1 (rev 44018) with the same result.

I am using the Dart eclipse plugin on Windows 8.1

Thanks


回答1:


This is an issue in the Chrome version Dartium is built on.
Hopefully with Dart 1.15 we get the updated Dartium where this issue should be fixed.



来源:https://stackoverflow.com/questions/28777278/debug-target-crashed-error-when-selecting-date-in-input-type-date

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!