Skip to content

Commit 5d1d6db

Browse files
authored
fix: Copy ID even when it is a var. (#6105)
1 parent b459a7c commit 5d1d6db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reflex/components/core/debounce.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def create(cls, *children: Component, **props: Any) -> Component:
111111
child_ref = child.get_ref()
112112
if props.get("input_ref") is None and child_ref:
113113
props["input_ref"] = Var(_js_expr=child_ref, _var_type=str)
114+
if child.id is not None:
114115
props["id"] = child.id
115116

116117
# Set the child element to wrap, including any imports/hooks from the child.

0 commit comments

Comments
 (0)