Closed UltimateGemini closed 4 years ago
This seems to be a feature request. Per documentation alerts are not designed to allow that:
Radios, checkboxes and text inputs are all accepted, but they cannot be mixed. For example, an alert could have all radio button inputs, or all checkbox inputs, but the same alert cannot mix radio and checkbox inputs. Do note however, different types of "text" inputs can be mixed, such as url, email, text, textarea etc. If you require a complex form UI which doesn't fit within the guidelines of an alert then we recommend building the form within a modal instead.
Im pretty sure that wasn't in the docs a year ago when i was working on this. Thanks for the reply.. a year later.
I just came across this issue too right now
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version: Latest
Current behavior: AlertController is not allowing different types of inputs at the same time. (e.g..text with checkbox)
Expected behavior: To allow checkbox, text, url, date, number input types to be mixed.
Steps to reproduce: Add AlertController to TS file.
Related code:
StackBlitz Demo