Word hangs when attempting to undo a change that insert four or more comments #4566
Labels
Area: Word
Issue related to Word add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
Provide required information needed to triage your issue
If an add-in inserts four or more comments (using
myRange.insertComment(...)
) in a singlecontext.sync()
call, attempting to undo that action (by pressing cmd+z or selecting "Undo typing" from the menu) causes Word to hang. This happens in both Word for Mac and on PC desktop (I haven't tested Word online).Your Environment
16.86 (24060916)
andVersion 2405 Build 16.0.17628.20110
Expected behavior
Ideally, pressing undo should undo the change. If that is not possible, the undo button should be disabled. Pressing undo should never cause Word to hang.
Current behavior
See above
Steps to reproduce
context.sync()
Link to live example(s)
N/A
Provide additional details
Note: if only three comments are inserted, Word performs the undo near-instantly
Context
In my Word add-in, I would like to add "apply all" functionality, and have that insert comments and redlines throughout the document. Because of the bug, if I ship this functionality to customer I risk them losing their work if they click "apply all" and then press "undo". Since the consequence for my customers would be so severe I can't ship the feature in this state.
A workaround for the issue is to apply comments in batches of three. This is undesirable because it means uses have to click "undo" multiple times to undo the "apply all" change.
Useful logs
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.
The text was updated successfully, but these errors were encountered: