Make value input compatible with iOS.