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() { render() {
return html` return html`
<div class="input-switch__container"> <div class="input-switch__container">
<slot name="label"></slot> ${this.labelTemplate()} ${this.helpTextTemplate()} ${this.feedbackTemplate()}
<slot name="help-text"></slot>
<slot name="feedback"></slot>
</div> </div>
<slot name="input"></slot> ${this.inputGroupTemplate()}
`; `;
} }