Closed JoniRinta-Kahila closed 9 months ago
No it's not necessary at all, in fact I am not even sure how it made it in there. Will push a fix asap.
Hi @hxf31891,
I went ahead and implemented the fix in PR #86.
If you have any feedback or if there's anything specific you would like me to adjust in the pull request, please let me know. Otherwise, feel free to review it at your convenience.
@JoniRinta-Kahila can you please confirm that this is fixed after your recent PR?
Thank you. Problem fixed.
Description: Firstly, I would like to express my gratitude for the excellent library. However, I am currently facing an issue with the react-gradient-color-picker@3.0.5 library in conjunction with the @headlessui/react@1.7.17 dialog. The problem arises when the ColorPicker sets document.body.style.overflow to 'auto', and subsequently, the @headlessui/react dialog component adds overflow: hidden to the HTML tag when the dialog opens. This conflicting behavior is causing the site to scroll to the top erroneously.
Reproduction:
Is changing the body style completely necessary for this library?