-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: Inline Modals not working #23561
Comments
For inline modals with Angular, you need to use So your content would look like this: <ion-modal trigger="datetime-modal">
<ng-template>
<ion-datetime></ion-datetime>
</ng-template>
</ion-modal> |
Yes
Yeah it might be best to create a custom animation for this. |
@liamdebeasi Ohh i din't found that Docs yet. Amazing, thank you! 😊 FYI: The Fact the a Also, |
Thanks! I can update the example for Angular - thanks! The typo should be fixed, I just need to update the docs site to use beta 1. Does the IDE error happen in v5 as well? |
The IDEA Error is only when i use the Modal inline. When i use the ModalController to create the Modal, all options are parsed correctly. So no Problems with this in v5 and v6. Only v6 inline. Also the |
Amazing thank you! :) I will continue testing the beta in the next days |
Just wanted to clarify. To close inline modal we just use |
For Angular I would recommend that approach. |
Also will i be able to pass any parameters with the inline modal? Could not find this on the doc. Im looking for something like the |
You would pass them directly to the component just as you would with any Angular component. |
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:
[ ] 4.x
[ ] 5.x
[X] 6.x
Current behavior:
I'm currently trying to open a inlined Modal with a Datetime Component in it. As this also doesn't work with any other stuff inside i guess it's a Modal Issue.
My Code:
Even if i design my Modal like:
it's just a white modal.
Additional Question:
presentingElement
&swipeToClose
in an inlined Modal?Expected behavior:
To correctly opens the Modal.
Steps to reproduce:
I created a small Repo: https://github.com/EinfachHans/ionic-inline-modal-bug
Ionic info:
The text was updated successfully, but these errors were encountered: