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

Dockmanager in shadow dom & double slotted does not allow input focus #46

Open
ig-robstoffers opened this issue Nov 8, 2022 · 0 comments
Assignees
Labels
bug Something isn't working status: in-review

Comments

@ig-robstoffers
Copy link

When you place an igc-dockmanager inside shadow dom and also double slot the pane content then it is not possible to focus the input. I believe the issue occurs in the handlePaneContentMouseDown where it is checking for the activeElement. In this specific scenario the activeElement is resolving to null when you click on the <input> which causes the pane to manually set focus causing the <input> to lose focus.

version: 1.11.3
browser: Chrome 107.0.5304.88

Steps to reproduce

  1. Run attached sample.
  2. Try to click inside the <input> element in the content pane.

Result

What is the actual result after following the steps to reproduce?

The <input> is not able to focus.

Expected result

What is the expected result after following the steps to reproduce?

The <input> should be able to gain focus.

Attachments

dockmanager-shadowdom-focus-bug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status: in-review
Projects
None yet
Development

No branches or pull requests

2 participants