Skip to content

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

@chr-sad

Description

@chr-sad

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.

Metadata

Metadata

Assignees

Labels

area:spfxCategory: SharePoint Framework (not extensions related)type:bug-confirmedConfirmed bug, not working as designed / expected.type:invalid-not-dev-issueThis repo+issue list is for SharePoint development topics. Non-dev issues will be closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions