diff --git a/assets/js/phoenix_live_view/view.js b/assets/js/phoenix_live_view/view.js index 47caed781e..29ee18890b 100644 --- a/assets/js/phoenix_live_view/view.js +++ b/assets/js/phoenix_live_view/view.js @@ -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) } })