Fix issue with jumping cursor in controlled input fields.

It requires synchronous redraws.
See: https://github.com/facebook/react/issues/955