Skip to content

Commit 952a695

Browse files
committed
docs: add comment explaining explicit attr
1 parent 7ea5e19 commit 952a695

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

app/components/Button/Base.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,15 @@ defineExpose({
3939
variant === 'primary',
4040
}"
4141
:type="props.type"
42-
:disabled="disabled ? true : undefined"
42+
:disabled="
43+
/**
44+
* Unfortunately Vue _sometimes_ doesn't handle `disabled` correct,
45+
* resulting in an invalid `disabled=false` attribute in the final HTML.
46+
*
47+
* This fixes this.
48+
*/
49+
disabled ? true : undefined
50+
"
4351
:aria-keyshortcuts="keyshortcut"
4452
>
4553
<span

0 commit comments

Comments
 (0)