Docs toolbar: Undo and Redo stay current after either is used
Found while moving them for the layout mock-ups, and present on main: after an undo Redo stayed disabled, and after a redo Undo did, though the shortcuts worked. The transaction that reports an undo to the view runs before Y.UndoManager moves the item between stacks, so sync read them early and nothing corrected it. The toolbar now also syncs on the manager's stack-item-added and stack-item-popped (editor bundle rebuilt).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+29
−11
fixtures/toolbar.mjs+19 −1internal/docs/static/{editor.084c563d1019f16d.js => editor.3464d4563cebeed0.js}+10 −10
CI passed — run details
fixtures/toolbar.mjsLoading diff…
internal/docs/static/{editor.084c563d1019f16d.js => editor.3464d4563cebeed0.js}Loading diff…