Skip to content

Commit 0763287

Browse files
committed
run prettier
1 parent b6dd8cb commit 0763287

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
---
2-
'@react-spring/web': patch
3-
---
4-
5-
fix: support removing attributes from animated elements
1+
---
2+
'@react-spring/web': patch
3+
---
4+
5+
fix: support removing attributes from animated elements

targets/web/src/applyAnimatedValues.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ const attributeCache: Lookup<string> = {}
2222
type Instance = HTMLDivElement & { style?: Lookup }
2323

2424
export function applyAnimatedValues(instance: Instance, props: Lookup) {
25-
if (!instance.nodeType || !instance.setAttribute || !instance.removeAttribute) {
25+
if (
26+
!instance.nodeType ||
27+
!instance.setAttribute ||
28+
!instance.removeAttribute
29+
) {
2630
return false
2731
}
2832

0 commit comments

Comments
 (0)