widget.onClick receiving empty targetId with nested tags #865
Unanswered
jacopo-degattis
asked this question in
Errors
Replies: 1 comment 2 replies
-
|
I'll dig into it. I think it's just sending back the I'd of the element directly clicked. I'll see if I can make it so it looks for the closest parent id if one doesn't exist on the element. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm currently trying out script-kit and I was experimenting button's click events.
I noticed that, when I have a nested tag such as this
<button id='test'><pre>CLICK</pre></button>the callback function will receive an empty targetId while if I use a not nested tag such as<button id='test'>CLICK</button>it all works fine.I wonder what the error could be.
Any help is much appreciated
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions