@lukekaalim/act-web 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prop.js +2 -2
package/package.json
CHANGED
package/prop.js
CHANGED
|
@@ -58,7 +58,7 @@ export const setAttributeProp = (
|
|
|
58
58
|
export const setDOMTokenList = (
|
|
59
59
|
list/*: DOMTokenList*/,
|
|
60
60
|
prop/*: PropDiff*/
|
|
61
|
-
) => {
|
|
61
|
+
)/*: void*/ => {
|
|
62
62
|
const next = prop.next;
|
|
63
63
|
if (typeof prop.next === 'string')
|
|
64
64
|
// $FlowFixMe
|
|
@@ -82,7 +82,7 @@ export const setHTMLProp = (
|
|
|
82
82
|
setStylesProp(element, prop);
|
|
83
83
|
else if (prop.key in element && !propBlacklist.has(prop.key) && element instanceof HTMLElement) {
|
|
84
84
|
const htmlElement = (element/*: Object*/);
|
|
85
|
-
if (
|
|
85
|
+
if (htmlElement[prop.key] instanceof DOMTokenList)
|
|
86
86
|
setDOMTokenList(htmlElement[prop.key], prop);
|
|
87
87
|
else
|
|
88
88
|
htmlElement[prop.key] = prop.next;
|