fix(switch): _isEmpty should always return a boolean
This commit is contained in:
parent
30223d4c69
commit
592366640d
1 changed files with 3 additions and 1 deletions
|
|
@ -109,7 +109,9 @@ export class LionSwitch extends ScopedElementsMixin(ChoiceInputMixin(LionField))
|
||||||
* Override this function from ChoiceInputMixin.
|
* Override this function from ChoiceInputMixin.
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line class-methods-use-this
|
// eslint-disable-next-line class-methods-use-this
|
||||||
_isEmpty() {}
|
_isEmpty() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
__handleButtonSwitchCheckedChanged() {
|
__handleButtonSwitchCheckedChanged() {
|
||||||
this.checked = this._inputNode.checked;
|
this.checked = this._inputNode.checked;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue