Opened 13 years ago

Closed 10 years ago

#5979 closed bug (wontfix)

$().button() with an image inside not working in IE7/8

Reported by: jfhernandeze Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.button Version: 1.8.1
Keywords: button, ie, image Cc:
Blocked by: Blocking:


I have a checkbox with a label inside and a img inside the label:

<input type="radio" id="myid" value="someval" /> <label for="myid">

<img src="img/url/image.png" />



The UI works fine (paints it properly and handle visual effects) but when you click on the img that is inside the label, IE changes the UI well but it doesn't change the radio property as checked nor the value. If you click on the button background (generated by UI) it works fine (UI paints fine, and the value of the radio changes).

In other browsers works fine.

Change History (5)

comment:1 Changed 12 years ago by JamesKhoury

EDIT: shows the problem here


in ui.button._create:

     //... *snip*
Last edited 12 years ago by JamesKhoury (previous) (diff)

comment:2 Changed 11 years ago by Jörn Zaefferer

Status: newopen

Need to figure out if that applies to all nested markup. If so, adding a workaround for just images isn't useful.

comment:3 Changed 11 years ago by rcollette

As far as I can tell, this issue only pertains to images. Until someone else can identify other elements that are having issues inside a label, doing something to fix a noted issue is better than doing nothing about it, and the fix is quite easy to implement. Waiting this long for some other possible related issue to be noted is kind of like wondering if/when an alien is going to appear. Sorry for the sarcasm but honestly, a simple fix like this should not go unimplemented for so long.

Another fiddle in conjunction with knockoutjs

Last edited 11 years ago by rcollette (previous) (diff)

comment:4 Changed 10 years ago by Scott González

Milestone: TBD1.11.0

comment:5 Changed 10 years ago by dalekocian

Resolution: wontfix
Status: openclosed

This is the browser's default way of handling labels in IE7 and IE8. If you comment out $("#myid").button(); on and click on the label it will not set the radio button.

Note: See TracTickets for help on using tickets.