Open uicowboy opened 1 year ago
ISSUE When a Modal is rendered using HeadlessUI React, and a toast is dismissed manually by clicking on the X button, it causes the modal to close as well.
DEMO Codesandbox: https://codesandbox.io/s/react-hot-toast-headlessui-modal-2c9t27?file=/src/Modal.js
STEPS TO REPRODUCE
EXPECTED BEHAVIOR Only the toast should close, NOT the modal.
Using React 17 and the latest version of react-hot-toast.
react-hot-toast
May or may not be related to #164
I created this example of an accessible modal dialog that works with libraries like react-hot-toast using Ariakit:
https://ariakit.org/examples/dialog-react-toastify
ISSUE When a Modal is rendered using HeadlessUI React, and a toast is dismissed manually by clicking on the X button, it causes the modal to close as well.
DEMO Codesandbox: https://codesandbox.io/s/react-hot-toast-headlessui-modal-2c9t27?file=/src/Modal.js
STEPS TO REPRODUCE
EXPECTED BEHAVIOR Only the toast should close, NOT the modal.
Using React 17 and the latest version of
react-hot-toast
.May or may not be related to #164