Skip to content

PDF Preview (Embed.aspx) 'stealing' focus #10270

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
1 of 9 tasks
chr-sad opened this issue May 17, 2025 · 2 comments
Open
1 of 9 tasks

PDF Preview (Embed.aspx) 'stealing' focus #10270

chr-sad opened this issue May 17, 2025 · 2 comments
Assignees
Labels
area:spfx Category: SharePoint Framework (not extensions related) type:bug-confirmed Confirmed bug, not working as designed / expected. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@chr-sad
Copy link

chr-sad commented May 17, 2025

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

No response

Describe the bug / error

The new PDF Preview (Embed.aspx) is 'stealing' the users focus automatically on load and preventing the keyboard navigation for both SharePoint Online standard out of the box document library views and any other usage in SPFx.

Steps to reproduce

Open any SharePoint document library, add some documents containing PDF files and others. Important: open the details sidebar so the preview is loading. Click on some file in the document library and use the keyboard to navigate up and down. See that it is working for office filetypes, txt files and so on, but once it reaches a PDF file rendering the preview in the embed.aspx the focus is now in the preview iframe and the sidebar.

Image

Expected behavior

I can navigate the documents in the document library with the keyboard for all document types. The preview is never automatically stealing focus unless the user wants it to be focused.

@chr-sad chr-sad added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label May 17, 2025
@Ashlesha-MSFT
Copy link

Hello @chr-sad,
Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

@Amey-MSFT Amey-MSFT self-assigned this May 19, 2025
@Amey-MSFT Amey-MSFT added the area:spfx Category: SharePoint Framework (not extensions related) label May 19, 2025
@Amey-MSFT
Copy link

Hello @chr-sad,
We were able to reproduce the issue, and we are investigating it. We have logged this as a bug, and our engineering team will look into it.
Thank you!

@Amey-MSFT Amey-MSFT added the type:bug-confirmed Confirmed bug, not working as designed / expected. label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:spfx Category: SharePoint Framework (not extensions related) type:bug-confirmed Confirmed bug, not working as designed / expected. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

3 participants