@lukekaalim/act-web 6.0.0 → 6.0.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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/props.ts +2 -6
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/props.ts
CHANGED
|
@@ -42,10 +42,8 @@ export const setSVGElementProps = (
|
|
|
42
42
|
}
|
|
43
43
|
switch (name) {
|
|
44
44
|
case 'ref':
|
|
45
|
-
if (prev)
|
|
46
|
-
(prev as any).current = null;
|
|
47
45
|
if (next)
|
|
48
|
-
(next as
|
|
46
|
+
(next as act.WriteOnlyRef<SVGElement>).set(node)
|
|
49
47
|
return true;
|
|
50
48
|
case 'style':
|
|
51
49
|
return (setStyleProp(node.style, next as any, prev as any), true);
|
|
@@ -76,10 +74,8 @@ export const setHTMLElementProps = (
|
|
|
76
74
|
}
|
|
77
75
|
switch (name) {
|
|
78
76
|
case 'ref':
|
|
79
|
-
if (prev)
|
|
80
|
-
(prev as any).current = null;
|
|
81
77
|
if (next)
|
|
82
|
-
(next as
|
|
78
|
+
(next as act.WriteOnlyRef<HTMLElement>).set(node)
|
|
83
79
|
return true;
|
|
84
80
|
case 'style':
|
|
85
81
|
return (setStyleProp(node.style, next as any, prev as any), true);
|