Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Fix undo button bug #67

Merged
merged 4 commits into from
Nov 19, 2018
Merged

Fix undo button bug #67

merged 4 commits into from
Nov 19, 2018

Conversation

rmarren1
Copy link
Contributor

@rmarren1 rmarren1 commented Aug 13, 2018

Fixes #66
Previously, state.history.present was only updated on the first Dash callback, meaning actions which are applied to a different component than the previous action would not be recorded. To fix, we just set state.history.present on every callback.

@rmarren1 rmarren1 mentioned this pull request Aug 28, 2018
@rmarren1 rmarren1 changed the title Fix #66 Fix undo button bug Oct 19, 2018
@rmarren1
Copy link
Contributor Author

rmarren1 commented Oct 19, 2018

This was going to be a part of the Dev Tools PR since this bug was affecting functionality there, but I think we can release this now since some community members are also experiencing this bug and we have a bit of time before Dev Tools will be released (e.g. plotly/dash#234 (comment))

Copy link
Contributor

@valentijnnieman valentijnnieman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 💃

@rmarren1 rmarren1 merged commit 5e4d562 into plotly:master Nov 19, 2018
@rmarren1 rmarren1 deleted the undo-error branch November 19, 2018 13:35
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'undo' does not work when actions applied to two different components consecutively
2 participants