polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Modal focus trap problem

Open archasek opened this issue 1 year ago • 2 comments

Issue summary

When using the modal component with e.g. CKEditor (I tested other rich editors as well) or any other stuff with their own modals/balloons, Polaris conflicts with its focus handling.

Expected behavior

Focus on 3rd party additional modals should work well.

Actual behavior

When I open a balloon to add a hyperlink, it's impossible to type as focus is lost.

chrome-capture-2023-6-8

Steps to reproduce the problem

  1. Open the live example and run the project.
  2. Open modal
  3. Try to add a hyperlink in thhe WYSIWYG editor.
  4. Observe the buggy behavior.

Reduced test case

I prepared a live example to quickly reproduce.

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number: 11.4.5
  • Browser: Chrome
  • Device: Desktop
  • Operating System: Windows

archasek avatar Jul 08 '23 09:07 archasek

Is there any chance this can be resolved?

archasek avatar Aug 11 '23 17:08 archasek

Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically.

If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed.

github-actions[bot] avatar Feb 08 '24 03:02 github-actions[bot]