This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
feature proposal: onBeforeSelect callback #1071
Open
Description
Would you be willing to consider a PR for an onBeforeSelect callback? This would provide a way to access both the selection and the current value, potentially aborting the selection. If you try to track this externally it can get complicated (mostly due to assumptions about the target model's behavior) but the internal solution is fairly simple.
Implementation would include a check for a $q promise property and complete the selection when the promise is resolved or abort the selection in the case of a reject. (Without the promise, selection would be aborted via a falsey return value.)