Skip to content

Commit

Permalink
Account for mode.debounce in morphdom
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Aug 21, 2019
1 parent 51c1116 commit fe4bb4e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/livewire.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mix-manifest.json
@@ -1,3 +1,3 @@
{
"/livewire.js": "/livewire.js?id=a2c2e6c3df2dd31e7e08"
"/livewire.js": "/livewire.js?id=b4b27f4e53118a0cdaf3"
}
2 changes: 1 addition & 1 deletion src/js/dom/morphdom/morphdom.js
Expand Up @@ -388,7 +388,7 @@ export default function morphdomFactory(morphAttrs) {
}

var specialElHandler = specialElHandlers[fromEl.nodeName];
if (specialElHandler && ! fromEl.hasAttribute('wire:model')) {
if (specialElHandler && ! fromEl.isLivewireModel) {
specialElHandler(fromEl, toEl);
}
} // END: morphEl(...)
Expand Down
3 changes: 3 additions & 0 deletions src/js/node_initializer.js
Expand Up @@ -74,6 +74,9 @@ export default {
},

attachModelListener(el, directive, component) {
// This is used by morphdom: morphdom.js:391
el.el.isLivewireModel = true

const isLazy = directive.modifiers.includes('lazy')
const debounceIf = (condition, callback, time) => {
return condition
Expand Down

0 comments on commit fe4bb4e

Please sign in to comment.