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.
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
Platform: Mac
Host: Outlook
Office version number: Version 16.83.1 (24031813)
Operating System: MacOS Sonoma 14.4
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
Create a taskpane addin in MessageComposeCommandSurface
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
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!