Fixes issue with caret reset causing no input borders