Skip to content

Commit

Permalink
fix(runtime-core): throws a warning and not an error (vuejs#5545)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudongyuer committed Mar 9, 2022
1 parent 5898629 commit 8067f05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-dom/src/modules/props.ts
Expand Up @@ -59,7 +59,9 @@ export function patchDOMProp(
return
} else if (value == null && type === 'string') {
// e.g. <div :id="null">
el[key] = ''
try {
el[key] = ''
} catch {}
el.removeAttribute(key)
return
} else if (type === 'number') {
Expand Down

0 comments on commit 8067f05

Please sign in to comment.