Skip to content

Commit

Permalink
fix(picker): allow 0 as the selectedIndex
Browse files Browse the repository at this point in the history
fixes #14563
  • Loading branch information
pwespi authored and brandyscarney committed Aug 14, 2018
1 parent 9424ad7 commit d19061c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/components/picker/picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down

0 comments on commit d19061c

Please sign in to comment.