fix(picker): selectionIndex always initialized

This commit is contained in:
Manu Mtz.-Almeida
2017-03-07 19:02:33 +01:00
parent f4c9ba6614
commit ba3530657b
2 changed files with 2 additions and 1 deletions

View File

@@ -563,6 +563,7 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
let column: PickerColumn = {
name: key,
selectedIndex: 0,
options: values.map(val => {
return {
value: val,

View File

@@ -512,7 +512,7 @@ export class PickerCmp {
if (!isPresent(column.options)) {
column.options = [];
}
column.selectedIndex = 0;
column.options = column.options.map(inputOpt => {
let opt: PickerColumnOption = {
text: '',