From d19061c863f8558a0e597e3a5a53f1567b271b7b Mon Sep 17 00:00:00 2001 From: pwespi Date: Tue, 14 Aug 2018 11:12:58 -0400 Subject: [PATCH] fix(picker): allow 0 as the selectedIndex fixes #14563 --- core/src/components/picker/picker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/components/picker/picker.tsx b/core/src/components/picker/picker.tsx index 313073f7f8..36ed443a75 100644 --- a/core/src/components/picker/picker.tsx +++ b/core/src/components/picker/picker.tsx @@ -234,7 +234,7 @@ export class Picker implements OverlayInterface { private getSelected() { const selected: { [k: string]: any } = {}; this.columns.forEach((col, index) => { - const selectedColumn = col.selectedIndex + const selectedColumn = col.selectedIndex != null ? col.options[col.selectedIndex] : null; selected[col.name] = {