From 83fef6a6aaef63f370ad16ef6322a6ff68e52e69 Mon Sep 17 00:00:00 2001 From: DamianGlowala Date: Mon, 13 Dec 2021 00:53:57 +0100 Subject: [PATCH] fix(TCheckbox): fix reversed checkbox state when using `checked` prop --- src/inputs/TCheckbox.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/inputs/TCheckbox.ts b/src/inputs/TCheckbox.ts index e919b2c..8d279f0 100644 --- a/src/inputs/TCheckbox.ts +++ b/src/inputs/TCheckbox.ts @@ -236,9 +236,7 @@ const TCheckbox = HtmlInput.extend({ setChecked(checked: boolean) { const input = this.getInput(); - // this.localValue = checked; - input.checked = !checked; - input.click(); + input.checked = checked; // Emit update event to prop this.$emit('update:checked', checked);