Skip to content

Commit 3720b7a

Browse files
authored
prevent tag special props from being a shared mutable reference (#5640)
* prevent tag special props from being a shared mutable reference * no annoying extra lines
1 parent 1aafe9a commit 3720b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/components/component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def _render(self, props: dict[str, Any] | None = None) -> Tag:
964964
# Create the base tag.
965965
tag = Tag(
966966
name=name,
967-
special_props=self.special_props,
967+
special_props=self.special_props.copy(),
968968
)
969969

970970
if props is None:

0 commit comments

Comments
 (0)