https://i.sstatic.net/GMUss.png
I'm attempting to create functionality where the "Open Chat" button displays an Absolute positioned div, then hides it when clicked again.
I experimented with using the react-collapse component, but encountered issues when the content of the div is absolutely positioned. It works fine when the content is set to static or relative positioning. However, on the second click, the content does not hide as expected. I'm curious why this happens and if there is a solution to achieve the desired functionality?
The reason for wanting absolute position for the content is to overlay the chat box on top of other content, similar to the layout shown in the image provided. Appreciate any insights or advice on how to accomplish this. Thank you!