fix(input): caret restoring of input