Opened 9 years ago
Closed 9 years ago
#15068 closed defect (fixed)
_AutoCompleterMixin changes predefined ID of label node
Reported by: | Paul Christopher | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | undecided | Milestone: | 1.8 |
Component: | Dijit - Form | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Description
The predefined ID of a control's label node is changed by the postCreate function of _AutoCompleterMixin without checking if there is already an ID present.
Steps to reproduce the issue
Run the attached test case to see the effect. The id of the label is changed from the given value "fruitLabel" to "fruit_label". Thus you cannot access the label with this predefined ID anymore.
Discussion
I think this happens in the _AutoCompleterMixin's postCreate function.
Background: I have a form in which you can enable/disable certain parts by checking a check box. It the control is disabled, if want to gray out the label, too. Therefore I access the label directly via its id.
Workaround: Query the whole DOM and find the label associated the the FilteringSelect ("_AutoCompleterMixin based Widget").
Attachments (2)
Change History (4)
Changed 9 years ago by
Attachment: | testLabel.html added |
---|
Changed 9 years ago by
Attachment: | [patch][cla]15068.diff added |
---|
comment:1 Changed 9 years ago by
Milestone: | tbd → 1.8 |
---|---|
Status: | new → assigned |
comment:2 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In [28238]: