fix #588 with onchange handler
Merge pull request #747 from waterbearlang/588_resize_input_on_paste

fix #588 with onchange handler