Skip to content

Commit

Permalink
ToggleInput: fix prop <> computed conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Jun 8, 2024
1 parent c0b60dd commit 00355cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/src/components/Forms/Input/ToggleInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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")];
Expand Down

0 comments on commit 00355cd

Please sign in to comment.