How can I create an input with type number in AlertController?
I attempted to implement this, but the input only accepts text and not numbers.
const alert = this.alertCtrl.create({
title: 'Add Ingredient',
inputs: [
{
name: 'name',
placeholder: 'Name'
},
{
name: 'amount',
placeholder: 'Amount',
type: 'number' // The issue lies here
}
],
buttons: [
{
text: 'Cancel',
role: 'cancel'
}
]
});