Please move logic into `onChange` directly.