Skip to content

Commit

Permalink
fix(module: picker): click ok button will throw error when use service (
Browse files Browse the repository at this point in the history
  • Loading branch information
Liyulun authored and fisherspy committed Dec 20, 2018
1 parent 10e06ad commit 40a8fee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/picker/picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ export class PickerComponent implements OnInit, AfterViewInit, OnDestroy {
}

ok() {
this.options.updateNgModel(this.combineReslut());
if (this.options.updateNgModel) {
this.options.updateNgModel(this.combineReslut());
}
if (this.options.confirm) {
this.options.confirm(this.combineReslut());
}
Expand Down

0 comments on commit 40a8fee

Please sign in to comment.