add a quick todo for a better possible solution for passing clicks from the label to the input

This commit is contained in:
John Bender 2011-10-25 10:55:30 -07:00
parent 6549b42ab5
commit 580b376566

View file

@ -75,7 +75,10 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
input.prop( "checked", inputtype === "radio" && true || !input.prop( "checked" ) );
// trigger click handler's bound directly to the input as a substitute for
// how lable clicks behave normally in the browsers1
// how label clicks behave normally in the browsers
// TODO: it would be nice to let the browser's handle the clicks and pass them
// through to the associate input. we can swallow that click at the parent
// wrapper element level
input.triggerHandler( 'click' );
// Input set for common radio buttons will contain all the radio