Skip to content

Commit

Permalink
add InfiniteScroll hook after patch, fixes #2667 (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Jan 1, 2024
1 parent fab57f9 commit 3d90f51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/phoenix_live_view/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ export default class View {

patch.after("added", el => {
this.liveSocket.triggerDOM("onNodeAdded", [el])
let phxViewportTop = this.binding(PHX_VIEWPORT_TOP)
let phxViewportBottom = this.binding(PHX_VIEWPORT_BOTTOM)
DOM.maybeAddPrivateHooks(el, phxViewportTop, phxViewportBottom)
this.maybeAddNewHook(el)
if(el.getAttribute){ this.maybeMounted(el) }
})
Expand Down

0 comments on commit 3d90f51

Please sign in to comment.