Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Why is this onClick handler not called? (Playground code) - SolidJS
S
SolidJS
•
3y ago
•
49 replies
Mathieu
Why is this onClick handler not called? (Playground code)
https://playground.solidjs.com/anonymous/b2bfddd1-102a-4f7a-a6e3-5d22846695e4
In the following playground code
, when putting the focus on the text field
, then clicking on the text
(exactly in that order
)
, the onClick on the text is not called
(no
"HELLO
!
" print
)
.
I have no idea why the onClick callback is ignored
.
(but I know it
's because of the error message that appears
, but don
't understand why the addition of the error message stops the onClick handler to be executed
)
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Why is this code not reactive?
S
SolidJS / support
14mo ago
`onClick` delegated event fires wrong handler
S
SolidJS / support
2y ago
Why is this Resource fetcher called 2 times?
S
SolidJS / support
3y ago