From 00355cd41776316bd7f9dfb38109fa24d574532b Mon Sep 17 00:00:00 2001 From: Nico Hoffmann Date: Sun, 9 Jun 2024 00:03:30 +0200 Subject: [PATCH] ToggleInput: fix prop <> computed conflict --- panel/src/components/Forms/Input/ToggleInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel/src/components/Forms/Input/ToggleInput.vue b/panel/src/components/Forms/Input/ToggleInput.vue index 4cab97628b..539bfa93a9 100644 --- a/panel/src/components/Forms/Input/ToggleInput.vue +++ b/panel/src/components/Forms/Input/ToggleInput.vue @@ -4,7 +4,7 @@ :checked="value" :class="['k-toggle-input', $attrs.class]" :disabled="disabled" - :label="label" + :label="labelText" :style="$attrs.style" type="checkbox" variant="toggle" @@ -38,7 +38,7 @@ export const props = { export default { mixins: [Input, props], computed: { - label() { + labelText() { // Add fallback for text const text = this.text ?? [this.$t("off"), this.$t("on")];