Fix cut texts bug in inputs in firefox