I have integrated Tableau JS 10.2 and undo/redo functionality in my application. But I found some inconsistency in tableau server behavior and JS api. For some api calls (ex - /commands/tabdoc/set-active-zone), if this event happening on server dashboard undo button is not enabling but if this event happen from my application, event listener - tableau.TableauEventName.TOOLBAR_STATE_CHANGE give me canUndo = true and enabling undo button.
Also is there a way we can restrict undo redo for some specific events?
I have moved this to the Developer Forums for more attention as no one has replied.