wip: fix compat utils usage

This commit is contained in:
Evan You
2021-04-09 23:21:13 -04:00
parent 183f9b0013
commit 7a25cbb7a7
8 changed files with 32 additions and 13 deletions

View File

@@ -54,6 +54,7 @@ export function compatCoerceAttr(
v2CocercedValue &&
compatUtils.softAssertCompatEnabled(
DeprecationTypes.ATTR_ENUMERATED_COERSION,
null,
key,
value,
v2CocercedValue
@@ -65,7 +66,11 @@ export function compatCoerceAttr(
} else if (
value === false &&
!isSpecialBooleanAttr(key) &&
compatUtils.softAssertCompatEnabled(DeprecationTypes.ATTR_FALSE_VALUE, key)
compatUtils.softAssertCompatEnabled(
DeprecationTypes.ATTR_FALSE_VALUE,
null,
key
)
) {
el.removeAttribute(key)
return true