Skip to content

Commit

Permalink
fix DOMException when remove class with '\n' character in react 'tran…
Browse files Browse the repository at this point in the history
…sition' component
  • Loading branch information
KingManiya committed Dec 7, 2023
1 parent c2096b0 commit 76e8354
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function TransitionChildFn<TTag extends ElementType = typeof DEFAULT_TRANSITION_
}, [state, container, register, unregister, show, strategy])

let classes = useLatestValue({
base: splitClasses(rest.className),
base: Array.from(rest.classList),
enter: splitClasses(enter),
enterFrom: splitClasses(enterFrom),
enterTo: splitClasses(enterTo),
Expand Down

0 comments on commit 76e8354

Please sign in to comment.