OvidijusParsiunas / deep-chat

Fully customizable AI chatbot component for your website
https://deepchat.dev
MIT License
1.27k stars 175 forks source link

Example HTML Active Table options not working #222

Closed rajeshwarpatlolla closed 3 days ago

rajeshwarpatlolla commented 1 week ago

I have used Active Table in deep-chat. The table is showing properly but the table options like sorting, inserting etc are not working. I checked in the example you gave at https://deepchat.dev/docs/messages/HTML, even there it's not working.

Screenshot 2024-06-20 at 16 43 38
OvidijusParsiunas commented 3 days ago

Hi @rajeshwarpatlolla. The issue appears to be on the Active Table side as it uses the global document variable to access the parent view. This becomes problematic when Active Table is inside another shadow DOM as the document variable can return incorrect data.

To note, I am the owner of the Active Table project and due to my currently limited time will not be able to fix this issue. The demo is there to only help demonstrate how to insert custom elements/shadow elements using the html property.

If you need a table or anything else, I would recommend checking out the https://www.webcomponents.org/ website.

Thankyou.