Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #1376. Up to date history stack on 'editor change' #1906

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

nikparo
Copy link
Contributor

@nikparo nikparo commented Jan 10, 2018

This is a fix for #1376 undo the first time,but the history.stack.redo.length = 0?

The destination stack is currently updated after any editor-change events. This makes it hard to e.g. reactively enable/disable undo redo buttons. With this change, the stack is updated first, and the quill contents and selection is updated after, ensuring that the stack is up to date when any events are fired.

@jhchen jhchen merged commit 7d82d63 into slab:develop Jan 17, 2018
@jhchen
Copy link
Member

jhchen commented Jan 17, 2018

Sorry for the delay -- thanks for the fix!

@nikparo
Copy link
Contributor Author

nikparo commented Jan 17, 2018

No problem, thanks for merging and for a very nice editor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants