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: inputs above sheet modals cannot be focused #24581

Closed
4 of 6 tasks
twittwer opened this issue Jan 15, 2022 · 7 comments · Fixed by #24840
Closed
4 of 6 tasks

bug: inputs above sheet modals cannot be focused #24581

twittwer opened this issue Jan 15, 2022 · 7 comments · Fixed by #24840
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@twittwer
Copy link

Prerequisites

Ionic Framework Version

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

Current Behavior

Inputs in the visible area above a sheet modal cannot be used because of the modal's focus trap.

Expected Behavior

The really nice new Sheet Modal provides the option to keep the not blocked part of the app interactive as described in the docs "This is useful when creating interfaces that have content underneath the sheet that should remain interactive.".
In this context, it should be possible to focus input elements outside the modal to ensure the real interactivity of the page.

Steps to Reproduce

  1. Go to the linked stackblitz
  2. Type in the searchbar 🟢
  3. Open the sheet modal
  4. Try to type in the searchbar 🔴

Code Reproduction URL

https://stackblitz.com/edit/angular-ivy-itpjej

Ionic Info

No response

Additional Information

The use case is a google maps like experience with a sheet modal and a searchbar at the top of the page:
image

@ionitron-bot ionitron-bot bot added the triage label Jan 15, 2022
@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Jan 18, 2022
@ionitron-bot ionitron-bot bot removed the triage label Jan 18, 2022
@liamdebeasi
Copy link
Contributor

Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?

npm install @ionic/[email protected]

@twittwer
Copy link
Author

Thx for working on it 👍
I've forked the Stackblitz for the updated version: https://stackblitz.com/edit/angular-ivy-vpsppv
But the behaviour has not changed 😕

@liamdebeasi
Copy link
Contributor

Can you try testing in a non-StackBlitz application? I had to download and run the project locally in order for the dev build to be installed correctly.

The issue still happens on the StackBlitz but does not happen on the local project.

@twittwer
Copy link
Author

ok, will try it locally this evening

@twittwer
Copy link
Author

Nice, it works 👍
Thx for the fix 😃

@liamdebeasi
Copy link
Contributor

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

@ionitron-bot
Copy link

ionitron-bot bot commented Mar 30, 2022

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants