You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remember checkbox on login screen and Accept terms checkbox on Register screen is not clickable/checkable in Safari iOS 11 - onClick event is not propagated to the handler.
Detailed description
[BUG]: Remember checkbox implemented by iCheck does not work in Safari iOS 11, using Vue login form. The element is not clickable, cannot be checked.
The onClick event does not get propagated to the iCheck event handler. The following workarounds does not work:
adding cursor: pointer
adding empty onClick="" to the label
I spent hour debugging it via Remote Safari inspection with no success. I could only get touchend events, but not click events. I think the problem has to be fixed in the iCheck directly.
Context
The UX of the remember checkbox is very frustrating.
Registration does not work completely as user cannot accept terms and conditions - blocker.
Possible implementation
I suggest migrate away from 3 years unmaintained project to more Vue native project vue-js-toggle-button. This one works very well with Vue, no JQuery initialization is needed. I tested it and it works fine both on desktops and mobile devices.
New method is needed as model does not play well with Laravel, i.e. setting model form value to false will still take checkbox as checked, it has to be '' (empty string).
The case with register checkbox is a bit more complicated. The potential form.errors for terms has to be cleared somehow.
I tried programatical clearing on the state change of the check box, but it did not work out of the box because of the Errors.js method clear uses delete operator which makes troubles to Vue to detect changes via reactivity. The workaround is to use Vue.delete(obj, key) method to delete the error (object attribute) so Vue can detect the change and update the UI.
The text was updated successfully, but these errors were encountered:
ph4r05
changed the title
Remember checkbox not clickable in Safari iOS 11
Remember checkbox / accept terms not clickable in Safari iOS 11
Nov 12, 2017
ph4r05
changed the title
Remember checkbox / accept terms not clickable in Safari iOS 11
Remember me and Accept terms not clickable in Safari iOS 11
Nov 12, 2017
Remember checkbox on login screen and Accept terms checkbox on Register screen is not clickable/checkable in Safari iOS 11 -
onClick
event is not propagated to the handler.Detailed description
[BUG]: Remember checkbox implemented by iCheck does not work in Safari iOS 11, using Vue login form. The element is not clickable, cannot be checked.
I think the problem culprit is similar to one described in this StackOverflow issue
The
onClick
event does not get propagated to the iCheck event handler. The following workarounds does not work:cursor: pointer
onClick=""
to the labelI spent hour debugging it via Remote Safari inspection with no success. I could only get
touchend
events, but notclick
events. I think the problem has to be fixed in the iCheck directly.Context
The UX of the remember checkbox is very frustrating.
Registration does not work completely as user cannot accept terms and conditions - blocker.
Possible implementation
I suggest migrate away from 3 years unmaintained project to more Vue native project vue-js-toggle-button. This one works very well with Vue, no JQuery initialization is needed. I tested it and it works fine both on desktops and mobile devices.
Install:
The
<template>
part:The script part:
New method is needed as model does not play well with Laravel, i.e. setting model form value to false will still take checkbox as checked, it has to be
''
(empty string).initializeIcheck.js
is not needed anymore.The case with register checkbox is a bit more complicated. The potential
form.errors
forterms
has to be cleared somehow.I tried programatical clearing on the state change of the check box, but it did not work out of the box because of the
Errors.js
methodclear
usesdelete
operator which makes troubles to Vue to detect changes via reactivity. The workaround is to useVue.delete(obj, key)
method to delete the error (object attribute) so Vue can detect the change and update the UI.Your environment
The text was updated successfully, but these errors were encountered: