Skip to content

Commit

Permalink
[docs] Improve draggable dialog demo (#19339)
Browse files Browse the repository at this point in the history
  • Loading branch information
konekoya authored and eps1lon committed Jan 22, 2020
1 parent 2082679 commit 820ad88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/dialogs/DraggableDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Draggable from 'react-draggable';

function PaperComponent(props) {
return (
<Draggable cancel={'[class*="MuiDialogContent-root"]'}>
<Draggable handle="#draggable-dialog-title" cancel={'[class*="MuiDialogContent-root"]'}>
<Paper {...props} />
</Draggable>
);
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/dialogs/DraggableDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Draggable from 'react-draggable';

function PaperComponent(props: PaperProps) {
return (
<Draggable cancel={'[class*="MuiDialogContent-root"]'}>
<Draggable handle="#draggable-dialog-title" cancel={'[class*="MuiDialogContent-root"]'}>
<Paper {...props} />
</Draggable>
);
Expand Down

0 comments on commit 820ad88

Please sign in to comment.