Icons always show the default in v9
See original GitHub issueDo you want to request a feature or report a bug? Bug
What is the current behavior?
When specifying a custom icon
(globally or per toast
call), react-toastify
always shows the default one. Even disabling completely the icon with false
still shows the default icon.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below: https://codesandbox.io/s/musing-hopper-5rw3bi?file=/src/App.tsx
What is the expected behavior? We should be able to specify a custom icon, as from the docs:
- A string
- A component
- Or
false
to disable it
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Test with React 17 and 18, all tested browsers, and macOS. It was working fine with react-toastify@8.2.0
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top GitHub Comments
You’re welcome, thanks for the release 😃
@QuiiBz I pushed a new version. I’ve added your test BTW. Thank you very much