Prevent premature change event on emptying input

Currently, if a user empties the content of the input (empty inputValue), value is updated before the change is committed.

This PR unifies the behavior of emptying the input with typing in the input, i.e. value is updated only when the change is committed by the user.