Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions reflex/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,9 @@ def fix_events(
# Fix the events created by the handler.
out = []
for e in events:
if callable(e) and getattr(e, "__name__", "") == "<lambda>":
# A lambda was returned, assume the user wants to call it with no args.
e = e()
if isinstance(e, Event):
# If the event is already an event, append it to the list.
out.append(e)
Expand Down
Loading