Fix validate event (#338)
This commit is contained in:
parent
a4ac2979c8
commit
1c20f4357c
@ -157,7 +157,8 @@ class Component(Base, ABC):
|
|||||||
Raises:
|
Raises:
|
||||||
ValueError: If the value is not a valid event chain.
|
ValueError: If the value is not a valid event chain.
|
||||||
"""
|
"""
|
||||||
# If it's already an event chain, return it.
|
# If it's a custom component and var, return it.
|
||||||
|
if isinstance(self, CustomComponent):
|
||||||
if isinstance(value, Var):
|
if isinstance(value, Var):
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user