We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae45ce commit c11c2c4Copy full SHA for c11c2c4
src/reactpy/web/templates/react.js
@@ -30,7 +30,11 @@ function wrapEventHandlers(props) {
30
const newProps = Object.assign({}, props);
31
for (const [key, value] of Object.entries(props)) {
32
if (typeof value === "function") {
33
- newProps[key] = makeJsonSafeEventHandler(value);
+ if (value.toString().includes(".sendMessage")) {
34
+ newProps[key] = makeJsonSafeEventHandler(value);
35
+ } else {
36
+ newProps[key] = value;
37
+ }
38
}
39
40
return newProps;
0 commit comments