Skip to content

Commit

Permalink
fix(picker): selectionIndex always initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 8, 2017
1 parent f4c9ba6 commit ba35306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/datetime/datetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/components/picker/picker-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down

0 comments on commit ba35306

Please sign in to comment.