meteor-sortablejs icon indicating copy to clipboard operation
meteor-sortablejs copied to clipboard

Ability to override, cancel, preventDefault(), stopPropagation(), etc for onAdd insertion

Open jowilhnson opened this issue 9 years ago • 0 comments

Users need to be able to have some control over what the package attempts to do to their Collections. Being able to write custom onAdd functions are only so useful when there's no way to stop the default attempt at inserting a new document into the collection.

var newElementId = templateInstance.collection.insert(event.data);

That line causes problems, and often times is not the desired behavior. evt.stopPropagation(), evt.preventDefault(), and evt.cancelBubble = true all have no effect.

jowilhnson avatar Mar 03 '16 22:03 jowilhnson