Avoid resetting input values on every change

For some reason this invalidates and repaints the
entire page.

See d2e2d4fbed19573df463cd7b93c575d69a852d9f

Fixes #1604.