dijit/form/CheckBox onChange in Chrome 55

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

dijit/form/CheckBox onChange in Chrome 55

kMac

Hi,

I am using  a dijit/form/CheckBox within a dijit/form/Form (dojo 1.10.0):

 

<form data-dojo-type="dijit/form/Form” data-dojo-attach-point="userDetailsForm">

 

<label for="access">Give Access:</label>

                <input type="checkbox"

                    data-dojo-type="dijit/form/CheckBox"

                    name="access"

                    data-dojo-attach-point="access"

                    id="accessInput"

                    value="true" />

<form>

 

I’m listening for changes to the form via:

 

on(this.userDetailsForm, "change", lang.hitch(this, "save"));

 

Prior to Chrome 55 (and in FF), the save method is called when the user clicks either the label or the checkbox.

 

In Chrome 55+ the method is not called when the user clicks the checkbox. However, when the user clicks the label the checkbox is toggled and the save method is called.

 

I’ve found this ticket, which seems to reference the checkbox issue: https://bugs.dojotoolkit.org/ticket/18932.

 

Does anyone know if there’s a (somewhat easy) workaround for this problem?

 

Thank you!

Kathryn

 


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: dijit/form/CheckBox onChange in Chrome 55

dylanks
Hi Kathryn,

The easiest workaround is to upgrade to 1.10.5 or newer (or any 1.11.x
or 1.12.x release).

Regards,
-Dylan

on 2/2/17, 11:40 (GMT-07:00) Kathryn McAdoo said the following:

> Hi,
>
> I am using  a dijit/form/CheckBoxwithin a dijit/form/Form (dojo 1.10.0):
>
>  
>
> <form data-dojo-type="dijit/form/Form”
> data-dojo-attach-point="userDetailsForm">
>
>  
>
> <label for="access">Give Access:</label>
>
>                 <input type="checkbox"
>
>                     data-dojo-type="dijit/form/CheckBox"
>
>                     name="access"
>
>                     data-dojo-attach-point="access"
>
>                     id="accessInput"
>
>                     value="true" />
>
> <form>
>
>  
>
> I’m listening for changes to the form via:
>
>  
>
> on(this.userDetailsForm, "change", lang.hitch(this, "save"));
>
>  
>
> Prior to Chrome 55 (and in FF), the save method is called when the user
> clicks either the label or the checkbox.
>
>  
>
> In Chrome 55+ the method is not called when the user clicks the
> checkbox. However, when the user clicks the label the checkbox is
> toggled and the save method is called.
>
>  
>
> I’ve found this ticket, which seems to reference the checkbox issue:
> https://bugs.dojotoolkit.org/ticket/18932.
>
>  
>
> Does anyone know if there’s a (somewhat easy) workaround for this problem?
>
>  
>
> Thank you!
>
> Kathryn
>
>  
>
--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Co-Founder, Dojo Toolkit
CEO, SitePen, Inc.  http://www.sitepen.com/