-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Only scroll page for multi-selections #21460
Conversation
if ( | ||
! selectionEnd || | ||
isMultiSelecting || | ||
selectionEnd === selectionStart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using the hasMultiSelection
selector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this works too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Size Change: +13 B (0%) Total Size: 889 kB
ℹ️ View Unchanged
|
dee19ba
to
170b71e
Compare
closes #19682
closes #21432
It seems that this component "MultiSelectScrollIntoView" has been refactored during the WP 5.4 lifecycle and it was triggering for simple selections too.
I'm not 100% certain this is the right fix but right now it only triggers for multi selections fixing this important bug #19682