Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahAhianyo committed Apr 23, 2024
1 parent 57f51b4 commit 0857f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def __init__(self, *args, **kwargs):

# Iterate through the kwargs and set the props.
for key, value in kwargs.items():
if key.startswith("on_") and key not in triggers:
if key.startswith("on_") and key not in triggers and key not in props:
raise ValueError(
f"The {(comp_name := type(self).__name__)} does not take in an `{key}` event trigger. If {comp_name}"
f" is a third party component make sure to add `{key}` to the component's event triggers. "
Expand Down

0 comments on commit 0857f8e

Please sign in to comment.