Skip to content

Commit

Permalink
exempt x-intersect from cloning phase
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Feb 13, 2024
1 parent d17b248 commit e8c5992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/intersect/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default function (Alpine) {
Alpine.directive('intersect', (el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
Alpine.directive('intersect', Alpine.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
let evaluate = evaluateLater(expression)

let options = {
Expand All @@ -23,7 +23,7 @@ export default function (Alpine) {
cleanup(() => {
observer.disconnect()
})
})
}))
}

function getThreshold(modifiers) {
Expand Down

0 comments on commit e8c5992

Please sign in to comment.