Closed Paplo22 closed 8 years ago
because you must pass a function reference and not execute the function on the then. This is an Async code execution you should provide a callback.
const referenceToOkFunction= function(value) {
toastr.success('why? now....', 'value);
};
const referenceToCanceFunction = referenceToOkFunction,bind(null, 'Pressed cancel');
eModal.confirm(options)
.then(referenceToOkFunction, referenceToCanceFunction);
});
Hi
and the 'toastr' is used before it is confirmed .. :( why
FIX, CLOSE