Skip to content

How do I control selection globally #563

Answered by zbeyens
meowWhat asked this question in Q&A
Discussion options

You must be logged in to vote

Slate.onChange is called when selection changes. You can use the exported isAcrossListItems to know if the selection is across multiple list items. Then your React component needs to show this background color if true.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #562 on March 09, 2021 10:45.