Skip to content

Commit 16865fb

Browse files
author
yangchangtao
committed
fix(compat): fix compat handler of draggable
1 parent 6eb29d3 commit 16865fb

File tree

1 file changed

+1
-1
lines changed
  • packages/runtime-dom/src/modules

1 file changed

+1
-1
lines changed

packages/runtime-dom/src/modules/attrs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function compatCoerceAttr(
5959
): boolean {
6060
if (isEnumeratedAttr(key)) {
6161
const v2CoercedValue =
62-
value === null
62+
value == null || value === false || value === 'false'
6363
? 'false'
6464
: typeof value !== 'boolean' && value !== undefined
6565
? 'true'

0 commit comments

Comments
 (0)