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

Unsuspected FocusLock behaving inside IFrame #22377

Open
yevhenii-username opened this issue May 27, 2022 · 1 comment
Open

Unsuspected FocusLock behaving inside IFrame #22377

yevhenii-username opened this issue May 27, 2022 · 1 comment
Labels
O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@yevhenii-username
Copy link

Steps to reproduce

When you render element-web inside an iframe and activate (open) some modal - react-focus-lock broken main window inputs and selects (iimmediately removes focus from elements)

  1. Add some inputs in the main app
  2. Add iframe tag and put src to element web instance
  3. Open some modal (everything which wrapped inside FocusLock component)
  4. Try put focus to input oon main app
    Here is issue about the same case
    FocusLock should have cross-frame behavior controllable theKashey/react-focus-lock#104 (comment)

Outcome

What did you expect?

Focus on all element (except inputs and selects) working as exected on main window
Inside iframe everything which around modal without focus as exected

What happened instead?

Focus, click not working on inputs and selects in the main window when some modal open inside iframe with element-web

Operating system

All

Browser information

All

URL for webapp

No response

Application version

All

Homeserver

No response

Will you send logs?

No

@yevhenii-username yevhenii-username changed the title Unsuspected FocusLock behaving Unsuspected FocusLock behaving inside IFrame May 28, 2022
@t3chguy
Copy link
Member

t3chguy commented May 28, 2022

The plan here is #22275, but this does not solve it for context menus

@uhoreg uhoreg added S-Minor Impairs non-critical functionality or suitable workarounds exist O-Uncommon Most users are unlikely to come across this or unexpected workflow labels May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

No branches or pull requests

3 participants