mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
add a quick todo for a better possible solution for passing clicks from the label to the input
This commit is contained in:
parent
6549b42ab5
commit
580b376566
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue