Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 83e8282

Browse files
David limkysDavid limkys
David limkys
authored and
David limkys
committed
Fixed bug where on-select event fired before the selected array was updated.
1 parent 2f14e5b commit 83e8282

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/select.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,11 @@
431431
ctrl.selected = item;
432432
}
433433

434-
ctrl.onSelectCallback($scope, {
434+
$timeout(function(){
435+
ctrl.onSelectCallback($scope, {
435436
$item: item,
436437
$model: ctrl.parserResult.modelMapper($scope, locals)
438+
});
437439
});
438440

439441
if (!ctrl.multiple || ctrl.closeOnSelect) {

0 commit comments

Comments
 (0)