Fixes issue where translate directive made the carret disappear