Commentez le setTimeout dans le composant pour afficher la méthode de saisie normalement
showValue (val) {
this.$emit('input', val)
if (val) {
if (this.showInput) {
this.msg = ''
// setTimeout(() => {
// if (this.$refs.input) {
// console.log('focus')
// this.$refs.input.focus()
// }
// }, 300)
}
this.$emit('on-show') // emit just after msg is cleared
}
Pour les problèmes non liés aux composants, iOS ne peut pas obtenir le focus actif dans la confirmation.
Le problème de mise au point est corrigé dans la prochaine version.
Pourquoi y a-t-il toujours ce problème, ouvrez confirmer, ios ne se concentre pas automatiquement