@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lukekaalim/act-web
2
2
 
3
+ ## 6.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0f734f5: Fix issue with web refs not being applied at all
8
+
3
9
  ## 6.0.0
4
10
 
5
11
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukekaalim/act-web",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "type": "module",
5
5
  "main": "mod.ts",
6
6
  "exports": {
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 any).current = node;
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 any).current = node;
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);