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

Outlook Task pane does not close on item change #3995

Open wilcotroost opened 10 months ago

wilcotroost commented 10 months ago

Recently the behaviour of the Outlook AddIn changed. Before if you opened a task pane it would close automatically as soon as you clicked a different message in the Outlook email message list.

Expected behavior

An opened TaskPane closes as you click on a different email

Current behavior

The opened TaskPane does not close

Oleg-O commented 10 months ago

I was unable to reproduce this. Do you consistently reproduce this? What's your client version?

wilcotroost commented 10 months ago

I was unable to reproduce this. Do you consistently reproduce this? What's your client version?

Hello Oleg, I can constantly reproduce this. We did not change the code on our side but this behaviour appeared overnight.

The version of outlook online seems to be 20231215008.10

I uploaded a screencast;

https://github.com/OfficeDev/office-js/assets/5337155/22dcf87a-fd77-456a-b868-b51c41009a8e

exextoc commented 10 months ago

@wilcotroost Can you try this in version latest 20240105 + version?

wilcotroost commented 10 months ago

I will if someone explains to me how I can change the version of Outlook Online. I was under the impression that Microsoft decides which version they present to you.

By the way: I am not completely sure about the version I mentioned. A coworker used a microsoft utility to show the version. I did not find any menu or option that showed the version of my Outlook online application.

exextoc commented 10 months ago

@wilcotroost For finding outlook web version and channel - append view-source: to your outlook web url in the address bar. For example: view-source:https://outlook.office.com/mail/ . In the source , search for "meta name=scriptVer" . This will give the version.

wilcotroost commented 10 months ago

@exextoc Thanks! The correct version is : 20240105004.04

ajays-msft commented 10 months ago

@wilcotroost - This issue is fixed in newer builds. > 20240105

wilcotroost commented 10 months ago

@ajays-msft Thanks for the update! Any idea when this version will be distributed to us?

ajays-msft commented 10 months ago

It will be available by 1/19

wilcotroost commented 10 months ago

@ajays-msft My current Outlook version is 20240112004.09 but the problem remains the same.

jkirby commented 10 months ago

@ajays-msft We are experiencing the same issue where an unpined addin task pane no longer closes when swapping emails. This behavior is the same on web version 20240112004.12 and desktop outlook (Microsoft Outlook Version 1.2024.111.100 (Production). Client Version is 20240112004.12) The issue is not just with our custom addin but with Microsoft addins like SendToOneNote / ShareToTeams and all thirdparty addins as well. If the add in is pinned, the addin works as expected however, if not pinned and the user swaps to a new email then addin's context is still linked with the original email. (this means many incorrectly filed emails) This behavior began for us on Monday 22 Jan 24. Please fix.

jkirby commented 10 months ago

@ajays-msft We are experiencing the same issue where an unpined addin task pane no longer closes when swapping emails. This behavior is the same on web version 20240112004.12 and desktop outlook (Microsoft Outlook Version 1.2024.111.100 (Production). Client Version is 20240112004.12) The issue is not just with our custom addin but with Microsoft addins like SendToOneNote / ShareToTeams and all thirdparty addins as well. If the add in is pinned, the addin works as expected however, if not pinned and the user swaps to a new email then addin's context is still linked with the original email. (this means many incorrectly filed emails) This behavior began for us on Monday 22 Jan 24. Please fix.

Today the issue seems to have been resolved. (Outlook Version 1.2024.111.100 (Production). Client Version is 20240119003.09)

exextoc commented 10 months ago

The issue has been fixed. Please hard refresh your browser and confirm.

wilcotroost commented 9 months ago

@exextoc Everything works like a charm. Thanks!

imjohnparsons commented 9 months ago

I am also seeing this issue with the web version scriptVer content=20240202008.10 sometimes when I first open outlook it pops up on its own without any user interaction to the app

imjohnparsons commented 9 months ago

Recording-20240207_131706.webm