Manually recover cursor position

Damn you React