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 multi selecting blocks without click #4349

Merged
merged 2 commits into from
Jul 4, 2022

Conversation

afbora
Copy link
Member

@afbora afbora commented Jun 11, 2022

This PR …

The issue fixed with listening window.addEventListener('blur') event and reset the multi select mode.

Fixes

Breaking changes

none

Ready?

  • [ ] Unit tests for fixed bug/feature
  • In-code documentation (wherever needed)
  • Tests and checks all pass

For review team

@afbora afbora added the type: bug 🐛 Is a bug; fixes a bug label Jun 11, 2022
@afbora afbora self-assigned this Jun 11, 2022
@afbora afbora marked this pull request as ready for review June 11, 2022 18:35
@afbora afbora linked an issue Jun 11, 2022 that may be closed by this pull request
@afbora afbora changed the title Fix multi selecting blocks without click #4319 Fix multi selecting blocks without click Jun 12, 2022
bastianallgeier
bastianallgeier previously approved these changes Jul 4, 2022
Copy link
Member

@bastianallgeier bastianallgeier left a comment

Choose a reason for hiding this comment

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

It works great!

@bastianallgeier
Copy link
Member

bastianallgeier commented Jul 4, 2022

I rebased and moved the event registration to the created method to only register it once. Otherwise it would have been registered multiple times on every select call.

@distantnative @afbora could you have another look at it?

bastianallgeier
bastianallgeier previously approved these changes Jul 4, 2022
@afbora
Copy link
Member Author

afbora commented Jul 4, 2022

Thank you @bastianallgeier for improvement 💛 Still works great! I leave the technical review to @distantnative

distantnative
distantnative previously approved these changes Jul 4, 2022
@distantnative distantnative dismissed stale reviews from bastianallgeier and themself via 4b6a06b July 4, 2022 16:18
@afbora afbora added this to the 3.7.1 milestone Jul 4, 2022
@distantnative distantnative merged commit 874033c into develop Jul 4, 2022
@distantnative distantnative deleted the fix/4319-multi-select branch July 4, 2022 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi select mode in blocks field is triggered without click
3 participants