Opened 12 years ago

Closed 12 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 12 years ago by Douglas Hays

Milestone: 1.1
Owner: set to Douglas Hays

comment:2 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [11961]) Fixes #5495. Changed fieldset to div and added overflow:hidden to make it work.

Note: See TracTickets for help on using tickets.