What is TypeScript event type of ConfirmPopup click handler? #451
-
In my TypeScript project, I am trying to follow the basic ConfirmPopup example.
However, the error is: By placing a breakpoint in runtime, I figure out it's
But now error on How to correctly use ConfirmPopup click handler in TypeScript? Thanks 🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
FlipWarthog
Nov 13, 2023
Replies: 1 comment 1 reply
-
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
liborjelinek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EventTarget
implementsHTMLElement
; are you able to simply dotarget: event.currentTarget as HTMLElement,
?See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement