DEV Community

Discussion on: Browser and React onChange event: The conundrum

Collapse
 
miketalbot profile image
Mike Talbot ⭐

onchange is fired when "the user commits the change" to the input field. So it happens when they press Enter or leave the field for a standard text input or text area. Given this is an input event it occurs before the more general onblur.