If I only specify a 'move', then the default insert and remove hooks are never called.
Template.listDetail.uihooks({
'.item': {
container: '.item-list',
move: function onMove(node, next) {
$(node).animate({
height: 'toggle',
opacity: 'toggle',
}, 250).promise().done(() =>{
$(node).insertBefore(next).animate({
height: 'toggle',
opacity: 'toggle',
}, 250);
});
},
},
});
If I only specify a 'move', then the default insert and remove hooks are never called.
Is this desired behavior? I imagine not....The issue seems to be that the generated wrappers around the passed in hooks return true even if a user specified hook isn't present, thus the defaultCallback never executes.
Will you accept a pull request fixing this?