AnsweredAssumed Answered

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

Question asked by straatvark on Aug 1, 2017



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