Skip to content
Advertisement

antd InputNumber: execute function onChangeComplete instead of onChange

JavaScript

in the code above you can see that I am forcefully updating the state of currentAccountArray, I want to execute this after the value is completely changed instead of onChange, which executes on every key press…

is there a way I can achieve this? I do not want to use onEnterPressed.

Advertisement

Answer

Maybe use onInput instead of onChange? — OR — Maybe a delayed call wrapped in a closure?

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement