Skip to content

When using dart:html, on.change is not called if you change a select using code #2325

Closed
@DartBot

Description

@DartBot

This issue was originally filed by jjinux...@google.com


When I used dart:dom, change events would occur whether it was the user changing the HTML element or whether I changed it with code. When I switched to dart:html, I found out that this was no longer true. This caused a bug in my code because I was expecting the change event to occur, and it didn't.

What steps will reproduce the problem?

  1. Try running the attached version of Tetris.
  2. If you change the level select, it'll generate an alert.
  3. Change it to level 10 and hit start.
  4. Wait until it says "Game over!".
  5. It'll programmatically reset the level to 1. However, it won't generate an on.change event. Hence, it won't generate a window.alert.

What is the expected output?
Whether I change the value of the HTML select with my mouse or via code, it should still generate an on.change event.

What do you see instead?
It only generates an event when I use my mouse.

What version of the product are you using?
I'm using the latest unstable version of the editor:
Version 0.1.0.201203271110, Build 5891
Dart SDK version 5891

On what operating system?
OS X 10.6

Please provide any additional information below:
I'm using Dartium.


Attachment:
src.tar.gz (33.88 KB)

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-as-intendedClosed as the reported issue is expected behaviorweb-librariesIssues impacting dart:html, etc., libraries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions