Closed sureshjoshi closed 8 months ago
Thank you for reporting this issue regarding Body.clear
API in footnotes. The issue is confirmed and tracked as ADO#5535646 in our backlog.
Hi @chiz-ms - is there any movement on this bug? It's a tricky one for development, since it requires a full browser refresh.
Thanks!
Hello @sureshjoshi , we colleagues fixed this issue together with the one in https://github.com/OfficeDev/office-js/issues/2216. Now You can take the reply about deployment date in that link as an example. Sorry for updating late.
I don't know if this is a problem with OfficeJS or Office Online - but something weird is happening, which is making testing/development very slow and painful.
I've attached a video and images which explains this better than I can, but essentially, I can run the attached script without issues when I'm in the body of the document. However, when I run the script while the Footnotes popup is in focus, the document is effectively corrupted.
The existing footnote disappears, a RichApi error is thrown (and is always thrown for the same operation from now on, until I refresh the browser - closing and re-opening script lab isn't enough). As well, my paragraph body text starts appearing and disappearing based on document clicks.
From this state, I need to refresh the browser page before I can run my ScriptLab script again.
Again, very poor explanation, but the video shows an example.
Your Environment
Expected behavior
I'm not sure. The environment shouldn't be corrupted, but I'm fine not being able to run my script while viewing the footnotes (though, not sure why that wouldn't be possible). However, I would expect no more than a standard OfficeJS exception to be thrown, with no "damage" to my document.
Current behavior
The document and my interactions are all corrupted, and I need to do a webpage refresh before I can even use Office Online again. There is no guarantee whether, on refresh, there will be content in the document - or it will be empty.
Script Lab example
Context
Just testing out the new API for an application being developed (in order to replace a lot of nasty
insertOOXML
).Useful logs
Video of the problem in action:
https://user-images.githubusercontent.com/3823045/139332535-b0d22ec0-49a0-4078-bf8b-ddd0b06fb86d.mov
Screenshots of the problem with some small annotations: