You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: apps/www/content/docs/block-selection.mdx
+8-5
Original file line number
Diff line number
Diff line change
@@ -167,16 +167,15 @@ export function BlockSelection() {
167
167
168
168
This component should be rendered inside each block element for consistent selection feedback. Plate UI is doing it in `plate-element.tsx`.
169
169
170
-
### Disable browser default scroll behavior
170
+
##Prevent unselect
171
171
172
-
When selecting text and moving the cursor to the bottom of the page, the browser's default scroll behavior can conflict with the `BlockSelectionPlugin`. To mitigate this, you can add a non-selectable area to the right side of the editor:
172
+
To prevent unselecting blocks when clicking on certain elements, add the `data-plate-prevent-unselect` attribute to those components
0 commit comments