Switched onchange to oninput