mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
lib: allow change value through js
only in case skip is true as we won't fire event, we allow to change that value to display the switcher as it should
This commit is contained in:
@@ -135,6 +135,9 @@
|
||||
if (typeof value === "undefined") {
|
||||
return this.options.state;
|
||||
}
|
||||
if (!skip && (this.options.disabled || this.options.readonly)) {
|
||||
return this.$element;
|
||||
}
|
||||
if (this.options.state && !this.options.radioAllOff && this.$element.is(":radio")) {
|
||||
return this.$element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user