OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
689 stars 95 forks source link

Closing sidepane in Outlook for Mac can result in focus on the searchbar #4287

Open hbnrmx opened 8 months ago

hbnrmx commented 8 months ago

Provide required information needed to triage your issue

Closing an addin sidepane manually or programmatically on Outlook for Mac can lead to the focus shifting to the top search bar. This is awkward from a UX perspective because the user is made to believe that further action is required after interacting with our taskpane, when in reality, the focus just shifts to the next best place on the screen.

Your Environment

Expected behavior

The search bar should not be focused automatically.

Current behavior

The search bar receives focus and opens a search dropdown.

Steps to reproduce

  1. Create a taskpane addin in MessageComposeCommandSurface
  2. Close taskpane without user interaction:
    Office.onReady(() => {
    Office.context.ui.closeContainer()
    })

    or alternatively: manually close the sidepane.

https://github.com/OfficeDev/office-js/assets/46070579/9cdf3dfd-79ad-4099-b689-52d3ea4ddf16

Context

Ideally, after our taskpane closes, we'd like to be in a "neutral" UI state, where the job is done and the User can continue writing their email...

Thank you!

akagarwa-msft commented 8 months ago

Thanks for reporting this issue. It has been put on our backlog. We unfortunately have no timelines to share at this point.

Internal tracking id: Office: 4434912