How do I disable the created alert using alert controller from automatically focusing onto the input field with the keyboard being displayed?
let alert = self.alertCtrl.create({
title: 'Login',
inputs: [
{
name: 'location_code',
placeholder: 'Location Code',
},
{
name: 'password',
placeholder: 'Password',
type: 'password'
}
],
buttons: [
{
text: 'Cancel',
role: 'cancel',
handler: data => {
console.log('Cancel clicked');
}
},
{
text: 'Login',
handler: data => {
console.log("Handling Login On Click")
});
}
}
]
});
alert.present();
Attempted Solution which didn't result in any change
this.alertController.create(
...
)
.present({
keyboardClose: true
});