Opened 13 years ago
Closed 13 years ago
#5495 closed defect (fixed)
<input> tags without for="..." do not work on dijits
Reported by: | guest | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | Dijit | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If I do the following:
<label><input type="checkbox" dojoType="dijit.form.CheckBox"> Click Me!</label>
Clicking on the "Click Me!" text doesn't toggle the checkbox. I think this is because the checkbox in dojo is constructed as a fieldset. This is a pain because it effectively forces me to make all my labels use the for attribute and give every checkbox an ID.
One nice solution would be to make form elements check to see if they are inside a label tag and then automatically fill in the for attribute for me since it gives the checkbox an ID anyways!
Change History (2)
comment:1 Changed 13 years ago by
Milestone: | → 1.1 |
---|---|
Owner: | set to Douglas Hays |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [11961]) Fixes #5495. Changed fieldset to div and added overflow:hidden to make it work.