Skip to content

Commit 13f588a

Browse files
authored
Update vdom.py
1 parent c890965 commit 13f588a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/reactpy/core/vdom.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def separate_attributes_and_event_handlers(
223223

224224
if callable(v):
225225
handler = EventHandler(to_event_handler_function(v))
226+
elif isinstance(v, str) and v.startswith("javascript:"):
227+
handler = v
226228
elif isinstance(v, EventHandler):
227229
handler = v
228230
else:

0 commit comments

Comments
 (0)