fix(switch): render function methods not slots

This commit is contained in:
Alex Ghiu 2019-10-23 18:01:40 +02:00 committed by Thomas Allmer
parent 7856500117
commit 40394bcb9d

View file

@ -26,11 +26,9 @@ export class LionInputSwitch extends ChoiceInputMixin(LionField) {
render() {
return html`
<div class="input-switch__container">
<slot name="label"></slot>
<slot name="help-text"></slot>
<slot name="feedback"></slot>
${this.labelTemplate()} ${this.helpTextTemplate()} ${this.feedbackTemplate()}
</div>
<slot name="input"></slot>
${this.inputGroupTemplate()}
`;
}