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 action history initialization to change frames correctly #221

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

tddough98
Copy link
Collaborator

What

This is a quick bug fix that affects reloading the action history when revisiting a project URL. The constructor for a ChangeFrame action changed between #212 and #214, but did not change in initializeActionHistory, causing the frames to not change while undoing past actions after reloading the page.

One issue highlighted by this fix is that initializeActionHistory does not switch between features when past actions occurred on different features. I made an issue #220 to document this.

Why

When actions occur on different frames, we should switch to the frame where the action occurs before undoing it so that the changes are visible.

Copy link
Contributor

@willgraf willgraf left a comment

Choose a reason for hiding this comment

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

Looks like a simple fix. Would it be possible to add a test that makes sure the frames are changing properly?

@willgraf willgraf self-requested a review January 12, 2021 21:31
@tddough98 tddough98 merged commit 6d82cde into master Feb 2, 2021
@tddough98 tddough98 deleted the reload-action-history branch February 2, 2021 17:51
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.

None yet

2 participants