React Excel add-in: range.insert() function moves client viewport to top of sheet #5213
Labels
Area: Excel
Issue related to Excel add-ins
Status: in backlog
Issue is being tracked in the backlog but timeline for resolution is unknown
Provide required information needed to triage your issue
When running the
range.insert()
function on an Excel range, it jumps the client viewport to the top of the sheet.Your Environment
Expected behavior
Previously, this function inserted the row below without moving the user’s viewport.
Current behavior
Now, whenever the
range.insert()
function is called, the user viewport jumps to the top of the sheet.Steps to reproduce
yo office --taskpane --name "insert-row-test" --host Excel --js
insertText()
function intaskpane.js
with the following code:Insert Text
button in the taskpane.Link to live example(s)
Context
This issue disrupts the user workflow as they need to repeatedly scroll to return to their working position.
This issue appears to have been introduced in version V2411. Previously, the viewport remained stable, which allowed for a seamless user experience.
The text was updated successfully, but these errors were encountered: