-
Notifications
You must be signed in to change notification settings - Fork 158
Load on the fly #418
Copy link
Copy link
Open
Description
So reading the code on https://github.com/danirus/django-comments-xtd/blob/master/django_comments_xtd/static/django_comments_xtd/js/src/index.js#L6
Seems that if the selector doesn't exist there is a JS crash (I can confirm it) but also if the comments are loaded after the library loading this is not possible (remember #334).
My user case is that I have the comments in some pages but in others they are showed after a clicked (loaded with HTMX so they aren't in the HTML yet).
Ideally this cose should check in runtime for new items, also the problem is that natively uses the ID that need to be unique.
I will work on a PR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels