New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue Login Form "remember" checkbox state ignored #356
Comments
I am having the same issue. Click event does not get to the checkbox, |
I figured out the problem, the time of My dirty workaround:
mounted () {
this.$nextTick(() => {
this.initialitzeICheck('remember');
});
},
export default {
methods: {
initialitzeICheck (field) {
const component = this;
const compObj = $('input[name=' + field + ']');
$(document).ready(() => {
setTimeout(() => {
compObj.iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%'
});
}, 10);
setTimeout(() => {
compObj.on('ifChecked', function (event) {
component.form.setField(field, true);
component.form.errors.clear(field);
});
compObj.on('ifUnchecked', function (event) {
component.form.setField(field, '');
});
}, 10);
});
}
}
} |
@acacha thanks I did the same. I used vue-toggle component |
Checking the form.remember checkbox on the login page (LoginForm.vue) does nothing.
The AJAX request always sends remember: "", even when checked.
My environment: MacOS Sierra, Chrome 61.
The text was updated successfully, but these errors were encountered: