Skip to content
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

DocumentSelectionChanged event no longer firing in PowerPoint addin #5390

Open
3 tasks
BioTaya opened this issue Feb 13, 2025 · 3 comments
Open
3 tasks

DocumentSelectionChanged event no longer firing in PowerPoint addin #5390

BioTaya opened this issue Feb 13, 2025 · 3 comments
Assignees
Labels
Area: PowerPoint Issue related to PowerPoint add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs

Comments

@BioTaya
Copy link

BioTaya commented Feb 13, 2025

Our PowerPoint add-in relies on the DocumentSelectionChanged event to update its state based on selection changes. This has been working since mid-2023. However, in the latest PowerPoint for Mac (version 16.94 (25020927), released Feb 11, 2025), the event no longer triggers, and our handler never gets called. I confirmed that it still works as expected in the previous version (16.93.2 (25012611), Jan 28, 2025).

We also tested the behaviour on the latest PC Desktop version of PowerPoint and PowerPoint on the web and the DocumentSelectionChanged event fires as expected. It is only an issue on Mac.

Provide required information needed to triage your issue

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Mac
  • Host [Excel, Word, PowerPoint, etc.]: Powerpoint
  • Office version number: 16.94 (25020927)
  • Operating System: ______
  • Browser (if using Office on the web): ______

Expected behavior

The DocumentSelectionChanged event fires when there is a change in selection in PowerPoint and calls our event handler. (As it did before the most recent release)

Current behavior

The DocumentSelectionChanged event never fires when there is a change in selection in PowerPoint.

Steps to reproduce

  1. Create a bare-bones PowerPoint addin and register an event handler for DocumentSelectionChanged that logs when it is called
Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged, async () =>
            console.log('DocumentSelectionChanged fired'),
);
  1. Verify that on Powerpoint version 16.94 (25020927) this never gets logged when changing the selection
  2. Verify that on Powerpoint version 16.93.2 (25012611) (or other earlier versions) this does gets logged when changing the selection as expected

Link to live example(s)




Provide additional details




Context

Our addin requires this event for our functionality and has been using it for a year and half. Without this event our addin has a broken experience for users.

Useful logs

  • Console errors
  • Screenshots
  • Test file (if only happens on a particular file)

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Feb 13, 2025
@alison-mk alison-mk added Needs: attention 👋 Waiting on Microsoft to provide feedback Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs Area: PowerPoint Issue related to PowerPoint add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Feb 14, 2025
@alison-mk
Copy link

Hi @BioTaya, thank you for submitting this issue. @EsterBergen Could you take a look at this PowerPoint issue?

Cheers,
Alison

@bigelowt
Copy link

Is there an ETA for this fix, this bug makes our Add-in inoperable.

@zartinn
Copy link

zartinn commented Feb 19, 2025

We have experienced today exactly the same problem with our Addin, as well with at least one other major bug that got introduced with 16.94:
#5404

Please have a look into this asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: PowerPoint Issue related to PowerPoint add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs
Projects
None yet
Development

No branches or pull requests

5 participants