From 43f19638d05c13eb91b478bbf5881dd9fc6884c9 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Tue, 15 Oct 2024 14:11:03 -0700 Subject: [PATCH] Arbitrary arg access two levels deep for untyped handler Provide drop-in compatibility with existing component wrapping code that was accessing attributes on the default handler arg type. --- reflex/event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reflex/event.py b/reflex/event.py index 04879add3..00ae137eb 100644 --- a/reflex/event.py +++ b/reflex/event.py @@ -1041,7 +1041,8 @@ def resolve_annotation(annotations: dict[str, Any], arg_name: str): deprecation_version="0.6.3", removal_version="0.7.0", ) - return JavascriptInputEvent + # Allow arbitrary attribute access two levels deep until removed. + return dict[str, dict] return annotation