Skip to content

bug: footer not working anymore inside a modal #24364

Closed

Description

@natqe

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

when placing ion-footer inside of ion-modal it should work properly with ion-content like ion-header does, but version 6 changes broke it, and now it not showing.

Expected Behavior

when placing ion-footer inside of ion-modal it should work properly with ion-content

Steps to Reproduce

create ion modal containing ion-header ion-content and ion-footer. ion-footer will be off of the screen

Code Reproduction URL

No response

Ionic Info

No response

Additional Information

No response

Activity

  1. self-assigned this
    on Dec 10, 2021
  2. liamdebeasi commented on Dec 10, 2021

    @liamdebeasi
    Contributor

    Thanks for the issue. Can you please reproduce this in an Ionic starter app and provide a link to the repo? I cannot reproduce this in an Ionic 6 app.

  3. added
    ionitron: needs reproduction
    on Dec 10, 2021
  4. ionitron-bot commented on Dec 10, 2021

    @ionitron-bot

    Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

    Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

    If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

    For a guide on how to create a good reproduction, see our Contributing Guide.

  5. removed their assignment
    on Dec 10, 2021
  6. natqe commented on Dec 10, 2021

    @natqe
    Author

    hi @liamdebeasi, i manage to fix it by wrapping 'IonModal' content with 'IonPage'. seems that in version 6 wrapping ionModal content with 'IonPage' is required. it will be perfect if it will be in the docs (currently without IonPage wrapper)

  7. liamdebeasi commented on Dec 13, 2021

    @liamdebeasi
    Contributor

    Glad the issue is fixed, but can you still reproduce the issue in a starter app and provide a link to the repo? I am not seeing this happen on my end -- the content inside of a modal should automatically be wrapped with an .ion-page class.

  8. natqe commented on Dec 14, 2021

    @natqe
    Author

    @liamdebeasi Yeah, is add it automatically when using useIonModal but not when using it as a jsx via <IonModal>

  9. alexlopezit commented on Dec 19, 2021

    @alexlopezit

    @liamdebeasi Yeah, is add it automatically when using useIonModal but not when using it as a jsx via <IonModal>

    I can confirm this issue after upgrading to Ionic 6, and thanks for the workaround of using IonPage

  10. jameson-w-taylor commented on Jan 4, 2022

    @jameson-w-taylor

    The <IonPage> workaround did work for me, and here's a reproduction of the issue (link).

    <IonFooter> appears to be rendering outside of the modal content area.

    Screenshots

    <IonModal>

    IonModal

    useIonModal

    useIonModal

  11. added and removed
    ionitron: needs reproduction
    on Jan 6, 2022
  12. liamdebeasi commented on Jan 6, 2022

    @liamdebeasi
    Contributor

    Thanks for the issue. This has been resolved via #24510, and a fix will be available in an upcoming release of Ionic Framework.

  13. ionitron-bot commented on Feb 5, 2022

    @ionitron-bot

    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.

  14. locked and limited conversation to collaborators on Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions