Pressing enter on an input field no longer executes on-click event