Debounce input_ref
Truthiness check for vars (#2692)
* Debounce `input_ref` Truthiness check for vars * fix integration test
This commit is contained in:
parent
421bfa034a
commit
b849c8d9d8
@ -95,7 +95,7 @@ class DebounceInput(Component):
|
|||||||
if child.class_name is not None:
|
if child.class_name is not None:
|
||||||
props["class_name"] = f"{props.get('class_name', '')} {child.class_name}"
|
props["class_name"] = f"{props.get('class_name', '')} {child.class_name}"
|
||||||
child_ref = child.get_ref()
|
child_ref = child.get_ref()
|
||||||
if not props.get("input_ref") and child_ref:
|
if props.get("input_ref") is None and child_ref:
|
||||||
props["input_ref"] = Var.create_safe(child_ref, _var_is_local=False)
|
props["input_ref"] = Var.create_safe(child_ref, _var_is_local=False)
|
||||||
props["id"] = child.id
|
props["id"] = child.id
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user