From e16bb252b5fdfce844c9d2cda797501b69016d74 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Wed, 22 May 2024 07:43:38 +0200 Subject: [PATCH] Update props.js Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com> --- src/diff/props.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diff/props.js b/src/diff/props.js index bcc428d906..316146f0fd 100644 --- a/src/diff/props.js +++ b/src/diff/props.js @@ -136,7 +136,7 @@ export function setProperty(dom, name, value, oldValue, namespace) { if (typeof value == 'function') { // never serialize functions as attribute values } else if (value != null && (value !== false || name[4] === '-')) { - dom.setAttribute(name, name === 'popover' && value === true ? '' : value); + dom.setAttribute(name, name == 'popover' && value == true ? '' : value); } else { dom.removeAttribute(name); }