diff --git a/reflex/components/component.py b/reflex/components/component.py index af8808654..d9d4da32e 100644 --- a/reflex/components/component.py +++ b/reflex/components/component.py @@ -277,7 +277,7 @@ class Component(BaseComponent, ABC): field_type = EventChain elif key in props: # Set the field type. - field_type = fields[key].type_ + field_type = fields[key].annotation else: continue