Debounce input_ref Truthiness check for vars (#2692)

* Debounce `input_ref` Truthiness check for vars

* fix integration test
This commit is contained in:
Elijah Ahianyo 2024-02-22 19:21:15 +00:00 committed by GitHub
parent 421bfa034a
commit b849c8d9d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ class DebounceInput(Component):
if child.class_name is not None:
props["class_name"] = f"{props.get('class_name', '')} {child.class_name}"
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["id"] = child.id