Skip to content

fix: prevent sandbox update when clicking elements in sandbox #264

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

Merged
merged 2 commits into from
Aug 3, 2020

Conversation

smeijer
Copy link
Member

@smeijer smeijer commented Aug 3, 2020

What:
This fixes the issue where selecting an input in the sandbox, causes a direct update of that same sandbox. The problem with that is that whatever is being typed in an input, is directly being undone.

Why:
Because not being able to type in inputs, is highly frustrating.

How:
Let the state reducer know that it's the sandbox that caused the update, so that it can skip the sandbox update effect.

Sandbox only updates the query, in a way that results to the same element selection. So we can skip a round trip, and highlight the element directly from within the sandbox.

Checklist:

  • Tests
  • Ready to be merged

@smeijer smeijer added the bug Something isn't working label Aug 3, 2020
@smeijer smeijer self-assigned this Aug 3, 2020
@smeijer smeijer merged commit 1944578 into develop Aug 3, 2020
@smeijer smeijer deleted the feature/fix-element-change-event branch August 3, 2020 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant