Closed NoyChan closed 5 years ago
Thanks for reporting!
It's due to sloppy usage of hooks. Fixed here - https://github.com/DylanVann/ant-design-draggable-modal/commit/fc5539f078e51f770b222fe22f5e717d6167708b
The fix is available in v0.0.13
.
I've added ESLint with eslint-plugin-react-hooks
to prevent any other issues like this:
If you change the title prop, the modal didn't show the changed title unless you make a drag