fix(switch): _isEmpty should always return a boolean

This commit is contained in:
Thomas Allmer 2020-09-30 20:08:26 +02:00
parent 30223d4c69
commit 592366640d

View file

@ -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;