You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: List in inline modal last item is cut off #27470
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
I have attempted to create a modal with an ion-list inside it in Vue 3.X (latest), it is supposed to show all the way to the bottom, but the content of the modal does not scroll to the last item, it is instead cut off. I have seen the other issues that were supposedly resolved, but perhaps the bug has resurfaced.
Thanks for the report. The problem here is we need a single root node in order to apply an .ion-page class to. This is similar to regular Vue components where a single root node is required. Without that single root node, .ion-page cannot be applied correctly.
I'll work on updating the documentation to correct this behavior. In terms of addressing this in your applications, you can either abstract the modal content to a component, or wrap the content in .ion-page manually:
In my case the Ion-modal was in it's own component. I can confirm that wrapping the content in an ion-page did fix the issue though. The docs should be updated.
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.
Activity
typefox09 commentedon May 14, 2023
I'm having the exact same issue, I noticed the problem is coming from having an ion-header inside of an ion-modal.
Can also provide minimum code example if needed.

liamdebeasi commentedon May 15, 2023
Thanks for the report. The problem here is we need a single root node in order to apply an
.ion-pageclass to. This is similar to regular Vue components where a single root node is required. Without that single root node,.ion-pagecannot be applied correctly.I'll work on updating the documentation to correct this behavior. In terms of addressing this in your applications, you can either abstract the modal content to a component, or wrap the content in
.ion-pagemanually:liamdebeasi commentedon May 15, 2023
Actually, this is probably something we could handle automatically inside of Ionic. I'll see if I can apply a fix for this.
liamdebeasi commentedon May 15, 2023
Here is a dev build with a proposed fix if you are interested in testing:
typefox09 commentedon May 16, 2023
In my case the Ion-modal was in it's own component. I can confirm that wrapping the content in an ion-page did fix the issue though. The docs should be updated.
Example:
fix(react, vue): inline modals apply ion-page class (#27481)
ionitron-bot commentedon Jun 23, 2023
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.