oficina / docs Public

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>
Paul Campbell pushed by paul@keymail.dev 130eeeb528c71454ad7ffd8449e7e0df5d78c60d parent a89f7e0
2 files changed, +29 −11
  • fixtures/toolbar.mjs +19 −1
  • internal/docs/static/{editor.084c563d1019f16d.js => editor.3464d4563cebeed0.js} +10 −10

CI passed — run details

fixtures/toolbar.mjs

Loading diff…

internal/docs/static/{editor.084c563d1019f16d.js => editor.3464d4563cebeed0.js}

Loading diff…