From b849c8d9d87eb77dc73a9a196dd7acc5c0423bfd Mon Sep 17 00:00:00 2001 From: Elijah Ahianyo Date: Thu, 22 Feb 2024 19:21:15 +0000 Subject: [PATCH] Debounce `input_ref` Truthiness check for vars (#2692) * Debounce `input_ref` Truthiness check for vars * fix integration test --- reflex/components/core/debounce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/components/core/debounce.py b/reflex/components/core/debounce.py index 2767e8d21..28ba6ee3e 100644 --- a/reflex/components/core/debounce.py +++ b/reflex/components/core/debounce.py @@ -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