< debug target crashed>在< input type ='date'>中选择日期时出错。 [英] <debug target crashed> error when selecting date in <input type='date'>

查看:191
本文介绍了< debug target crashed>在< input type ='date'>中选择日期时出错。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下简单的.dart和.html文件

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 p>

.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>

在Dartium中运行应用程序显示日历下拉菜单。但是,每次选择日期时,应用程序会在使用以下

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.

我使用Stagehand创建了一个新的聚合物应用程序,结果相同。

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

这个问题出现在最后两个Dart Dev更新中 - 我目前使用的是Dart 1.9.0-dev.9.1(rev 44018) )。

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.

我在Windows 8.1上使用Dart eclipse插件。

I am using the Dart eclipse plugin on Windows 8.1

>

推荐答案

这是基于Chrome版本Dartium的问题。

希望Dart 1.15能够更新Dartium,这个问题应该修复。

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.

这篇关于&lt; debug target crashed&gt;在&lt; input type ='date'&gt;中选择日期时出错。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆