Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Radio and checkbox problem in alert #5538

Closed
BilelKrichen opened this issue Feb 20, 2016 · 3 comments
Closed

bug: Radio and checkbox problem in alert #5538

BilelKrichen opened this issue Feb 20, 2016 · 3 comments
Assignees

Comments

@BilelKrichen
Copy link

Type: bug

Ionic Version: 2.x

Platform: desktop browser

Radio and checkbox not showing correctly when i add them with prompts in alert

https://forum.ionicframework.com/uploads/default/original/3X/b/6/b68c9c6ecbd4774899b82a29c36371bef461ff75.png

@adamdbradley
Copy link
Contributor

Would you be able to provide a code example of how you're writing this?
https://github.com/driftyco/ionic/blob/2.0/ionic/components/alert/test/basic/index.ts#L122

@adamdbradley adamdbradley self-assigned this Feb 21, 2016
@BilelKrichen
Copy link
Author

Yes , I do this example, It's work when I add radio buttons only, but it doesn't work when I add them with inputs

let alert = Alert.create({
title: "Alert",
inputs:
[
{
name : 'FirstName',
placeholder: "FirstName"
},
{
name: "LastName",
placeholder: "LastName"
},
{
name: "Phone",
placeholder: "Phone"
},
{
name: "E-mail",
placeholder: "E-mail"
},
{
type: "radio",
label: "male",
value:"m"
},
{
type: "radio",
label: "female",
value:"f"
},
],
buttons: [
{
text: 'Cancel',
handler: data => {
console.log('Cancel clicked');
}
},
{
text: 'Save',
handler: data => {
console.log('Saved clicked');
}
}
]
});
this.nav.present(alert);

And the same think when I add buttons and inputs with alert.addInput({})

@adamdbradley
Copy link
Contributor

The alert does not allow mixing different types of inputs, like radio and checkboxes, or radio and inputs. I just updated the docs with that info, and also created a warning within the framework. Thanks

74a48f3

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants