render() triggered by onkeyup in JSX/TSX widget that extend "esri/widgets/Widget"

324
0
08-01-2017 07:05 PM
GertConradie
Occasional Contributor

Hi

When I use a HTML input of type 'text' in my widget and add onkeyup/onkeydown handler, then the render() method is triggered and the handler is not executed at all when entering a character in the text input. I suspect it is because the render() re-render the HTML and re-bind the handler again.

When I don't add onkeyup or onkeydown handlers, then typing in the text input don't trigger the render() method.

Any ideas/opinions on how to execute my own handle first before render() is executed?

Regards, Gert

0 Kudos
0 Replies