workaround for weird Chrome feature around invalid inputs, closes #452