mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix infinite scroll reload
This commit is contained in:
1 parent
05fa75f9a2
commit
ef28b80589
4 files changed
+15
-12
No files matched your search
@@ -2,11 +2,7 @@ import { renderStreamMessage } from '@hotwired/turbo'
|
||||
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
if (!this.dataset.src) {
|
||||
this.remove()
|
||||
|
||||
return
|
||||
}
|
||||
if (!this.dataset.src) return
|
||||
|
||||
this.observer = new IntersectionObserver((entries) => {
|
||||
if (entries.some((entry) => entry.isIntersecting)) {
|
||||
|
||||
Reference in new issue
Block a user