Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#9279 closed defect (invalid)

FilteringSelect: onChange won't fire on changing to the first entry when displayedValue is set.

Reported by: thekryz Owned by: Douglas Hays
Priority: high Milestone: tbd
Component: Dijit - Form Version: 1.3.1
Keywords: filteringselect onchange displayedvalue first option Cc:
Blocked By: Blocking:

Description

The use-case is a bit complicated, but you can check out the attached example.

I have a FilteringSelect? with some options. Because I want to make the user select one, I put a displayedvalue in there, that says "Unknown".
I added onChange to the FilteringSelect?, so every time the onChange event is fired, a alert shows up.
Now when the page is freshly loaded and the FilteringSelect? says "Unknown", I tried setting it to the FIRST option. But! The onChange event doesn't seem to fire here'''
The alert fires in every other occasion I have tested so far.

I saw this behaviour in 1.3.0 and 1.3.1.

Attachments (1)

SelectChange.html (1.5 KB) - added by thekryz 10 years ago.
minimal Test Case

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by thekryz

Attachment: SelectChange.html added

minimal Test Case

comment:1 Changed 10 years ago by bill

Owner: set to Douglas Hays
Priority: highnormal

comment:2 Changed 10 years ago by Douglas Hays

Resolution: invalid
Status: newclosed

The value attribute should have been set to something like "Unknown" as well.

comment:3 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.