Skip to content

bug: sheet modal. An input field or text area element in an ion footer in a sheet modal is duplicated on first open & resize animations #30341

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

Open
3 tasks done
ijsje71 opened this issue Apr 7, 2025 · 2 comments
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@ijsje71
Copy link

ijsje71 commented Apr 7, 2025

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When adding a input field or text area in an IonFooter, the elements are duplicated on first open & when the animation to other breakpoints starts. This only occurs when the scrollToExpand property is set to false.
When the sheet modal is closed and reopened on the same breakpoint again, there is only one text area element rendered.

Image

Expected Behavior

I'm expecting only one text area element rendered, as I've defined in my codebase.

Steps to Reproduce

  1. Go to https://stackblitz.com/~/github.com/ijsje71/footer-with-input-text-in-sheet-modal or clone the repo
  2. Start the application
  3. Notice the sheet modal opening with 2 rendered text area's
  4. Now close the modal by dragging the sheet modal down
  5. Click the open modal button
  6. Notice the footer is now (correctly) rendering only one text area
  7. Now drag the sheet modal to its second breakpoint
  8. Notice that a second text area appears.

The same can be done with the IonInput. I've left that component commented out so that it can be easily reproduced with that modal as well. Make sure to refresh the page when you do, as the modal needs to be rendered again for the changes to take effect.

Code Reproduction URL

https://github.com/ijsje71/footer-with-input-text-in-sheet-modal#

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 8.5.3

Capacitor:

Capacitor CLI : 7.2.0
@capacitor/android : not installed
@capacitor/core : 7.2.0
@capacitor/ios : 7.2.0

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v22.14.0
npm : 10.9.2
OS : macOS Unknown

Additional Information

Since this is related to the expandToScroll false property & the sheet modal animations; it may be related to these issues:
#30315
#30312

@ionitron-bot ionitron-bot bot added the triage label Apr 7, 2025
@thetaPC
Copy link
Contributor

thetaPC commented Apr 8, 2025

Thank you for submitting the issue!

I was able to reproduce this on StackBlitz using a JS environment as well. The team will look into a solution.

@thetaPC thetaPC added package: core @ionic/core package type: bug a confirmed bug report labels Apr 8, 2025
@ionitron-bot ionitron-bot bot removed triage labels Apr 8, 2025
@ijsje71
Copy link
Author

ijsje71 commented Apr 9, 2025

Thank you! If I can test anything please let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

2 participants