-
Notifications
You must be signed in to change notification settings - Fork 818
Drag and Drop don't work #4046
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
Comments
2025-02-01.at.21.40.06.mp4Could you give more details on how to reproduce? |
In zen browser and firefox don't work, i don't know why |
output-github.mp4
|
in chrome work perfectly but in zen and firefox not! But other drag and drop lib works |
Known issue for buttons in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=568313#c16 Workaround: const DragHandle = React.memo(() => {
const editor = useEditorRef();
const element = useElement();
return (
<TooltipButton
asChild // <
role="button" // <
variant="ghost"
className={styles.dragHandle}
onClick={() => {
editor
.getApi(BlockSelectionPlugin)
.blockSelection.set(element.id as string);
}}
data-plate-prevent-deselect
tooltip="Drag to move"
draggable={false}
>
<div> {/* < */}
<GripVertical />
</div>
</TooltipButton>
);
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
drag and drop is not working properly, even in the documentation and editors that are in plate, drag and drop does not work: https://platejs.org/docs/dnd
Reproduction URL
https://platejs.org/docs/dnd
Reproduction steps
Plate version
^42.0.0
Slate React version
i don't have slate
Screenshots
Logs
Browsers
No response
The text was updated successfully, but these errors were encountered: