Skip to content

Commit

Permalink
Merge pull request #5490 from bcgov/dev-MD-3622
Browse files Browse the repository at this point in the history
3622 - disable draggable component to fix refocus issue
  • Loading branch information
milosdes authored Dec 24, 2024
2 parents 1aa20ae + 5ea9290 commit 9ee2e11
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,21 +290,22 @@ const MCFPersonal = ({
setFileTypeSearchValue("");
};

const PaperComponent = (props) => {
return (
<Draggable handle="#state-change-dialog-title" cancel={'[class*="MuiDialogContent-root"]'}>
<Paper {...props} />
</Draggable>
);
}
// Disabling draggable modal - this causing issues with the modal refocusing at the top
// const PaperComponent = (props) => {
// return (
// <Draggable handle="#state-change-dialog-title" cancel={'[class*="MuiDialogContent-root"]'}>
// <Paper {...props} />
// </Draggable>
// );
// }

return (

<div className="state-change-dialog">
<Dialog
open={editTagModalOpen}
onClose={() => handleClose()}
PaperComponent={PaperComponent}
// PaperComponent={PaperComponent}
aria-labelledby="state-change-dialog-title"
aria-describedby="state-change-dialog-description"
maxWidth={"md"}
Expand Down

0 comments on commit 9ee2e11

Please sign in to comment.