From 2dfebe16c105c1679d112a1e02c0da72dda47b3f Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Wed, 2 Oct 2024 11:38:53 -0700 Subject: [PATCH] subclass not isinstance --- reflex/components/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/components/component.py b/reflex/components/component.py index f7c3f1924..26ea2fd3f 100644 --- a/reflex/components/component.py +++ b/reflex/components/component.py @@ -538,7 +538,7 @@ class Component(BaseComponent, ABC): return value elif isinstance(value, EventVar): value = [value] - elif isinstance(value._var_type, (EventChain, EventSpec)): + elif issubclass(value._var_type, (EventChain, EventSpec)): return self._create_event_chain(args_spec, value.guess_type()) else: raise ValueError(