Skip to content

Commit

Permalink
fix: Added more deatils for drag and drop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Sep 8, 2023
1 parent 8c20e36 commit 208c02f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ const FORM_FIELDS = [
},
];

// Work around for react-beautiful-dnd issue. See: https://stackoverflow.com/a/75807063
// Work around for react-beautiful-dnd issue. The issues is that the
// Droppable component is not compatible with React.StrictMode.
// StricMode is used in the development environment by default.
// See:
// - https://stackoverflow.com/a/75807063
// - https://github.com/atlassian/react-beautiful-dnd/issues/2396
const StrictModeDroppable = ({ children, ...props }) => {
const [enabled, setEnabled] = useState(false);
useEffect(() => {
Expand Down

0 comments on commit 208c02f

Please sign in to comment.