From 592366640d59c1ecd876fe2d5c2e13f381b228e6 Mon Sep 17 00:00:00 2001 From: Thomas Allmer Date: Wed, 30 Sep 2020 20:08:26 +0200 Subject: [PATCH] fix(switch): _isEmpty should always return a boolean --- packages/switch/src/LionSwitch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/switch/src/LionSwitch.js b/packages/switch/src/LionSwitch.js index bb3353194..09f54f296 100644 --- a/packages/switch/src/LionSwitch.js +++ b/packages/switch/src/LionSwitch.js @@ -109,7 +109,9 @@ export class LionSwitch extends ScopedElementsMixin(ChoiceInputMixin(LionField)) * Override this function from ChoiceInputMixin. */ // eslint-disable-next-line class-methods-use-this - _isEmpty() {} + _isEmpty() { + return false; + } __handleButtonSwitchCheckedChanged() { this.checked = this._inputNode.checked;