Replies: 2 comments
-
@wss29 That is a good question! I've never tried it but it seems that other people had similar issues with svg+foreignObject and resolved them through, e.g., "svg-native" click zones (e.g., software-mansion/react-native-svg#1389). In theory foreignObject should support onClick without issues but maybe it does not properly propagate the event. Can you see whether the click event is fired on the foreignObject if you add a listener there? On a "regular" web page it definitely works so there might be some forwarding issue:
|
Beta Was this translation helpful? Give feedback.
-
FYI, I just did a test with this IView as part of the workflow example:
And for me the click is properly triggered and logged to the console. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to click a button and trigger a click event on that button. the button is inside a custom snabbdom view, code as follow
my problem is that, if I direct click the button, click event will not be triggered, I should select the view first then click the button can trigger the event.
Could the click event be triggered when clicking the button?
Beta Was this translation helpful? Give feedback.
All reactions