@RobeNogueira145 wrote:
I have a input inside an alert, how I can to put autocomplete off?
async promptSave() { let igual = 0; let alert = await this.alertController.create({ header: 'Nome da obra', inputs: [ { name: 'nome', placeholder: 'Introduzir nome', //HERE } ], buttons: [ { text: 'Cancelar', role: 'cancel' }, { text: 'Confirmar', handler: data => { if(data.nome == ""){ this.duplicado('O nome da obra deve ser preenchido.'); } else{ for (let i = 0; i <= this.vet.length - 1; i++) { if(data.nome == this.vet[i].nome){ igual = 1; } } if(igual == 0){ this.date = new Date(); this.formatedDate = this.date.toISOString().substring(0, 10); this.a = this.formatedDate.split('-'); this.b = this.a[2] + "-" + this.a[1] + "-" + this.a[0]; this.vet.push({ 'nome': data.nome, 'data': this.b }) localStorage.setItem('vetor', JSON.stringify(this.vet)); localStorage.setItem(data.nome, JSON.stringify(this.juntar)); this.nome = data.nome; this.toastPrompt2(); } else{ this.duplicado("Nome da obra já existe."); } } } } ] }); alert.present(); } `
Posts: 1
Participants: 1