Skip to content

Commit f8c43f9

Browse files
committed
Use a more correct pattern for firefox function -> null property access
1 parent bb54844 commit f8c43f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

reflex/state.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2486,7 +2486,14 @@ class FrontendEventExceptionState(State):
24862486
),
24872487
re.compile(re.escape("TypeError: null is not an object")), # Safari
24882488
re.compile(r"TypeError: can't access property \".*\" of null"), # Firefox
2489-
re.compile(re.escape("resolveDispatcher() is null")),
2489+
# Firefox: property access is on a function that returns null.
2490+
re.compile(
2491+
re.escape("TypeError: can't access property \"")
2492+
+ r".*"
2493+
+ re.escape('", ')
2494+
+ r".*"
2495+
+ re.escape(" is null")
2496+
),
24902497
]
24912498

24922499
@event

0 commit comments

Comments
 (0)