Modal should support draggable #6952
ykant
started this conversation in
Feature requests
Replies: 2 comments
-
Why do you think that it is an issue with Mantine and not with react-draggable? Last time I've checked it, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mantine is an awesome UI component library. Recently our team ready to start using Mantine to be our base components, but I found that it doesn't support draggable.
Then i try to make it work out like this
<Draggable disabled={!innerDraggable} handle=".modal-header"> <Modal.Content> <Modal.Header className={classNames({ [styles.modalHeader]: innerDraggable, 'modal-header': innerDraggable, })} > <Modal.Title>{title}</Modal.Title> {withCloseButton && <Modal.CloseButton />} </Modal.Header> <Modal.Body>{children}</Modal.Body> </Modal.Content> </Draggable>
It's great, but it's not work when I add a prop
bounds="parent"
toDraggable
.So I want to get help to make it better to use, any suggestion? Thanks for the suggestion.
Beta Was this translation helpful? Give feedback.
All reactions