Fix input hiding on firefox