fix(picker): allow 0 as the selectedIndex

fixes #14563
This commit is contained in:
pwespi
2018-08-14 11:12:58 -04:00
committed by Brandy Carney
parent 9424ad765d
commit d19061c863

View File

@ -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] = {