Skip to content

Commit ba35306

Browse files
committed
fix(picker): selectionIndex always initialized
1 parent f4c9ba6 commit ba35306

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/datetime/datetime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
563563

564564
let column: PickerColumn = {
565565
name: key,
566+
selectedIndex: 0,
566567
options: values.map(val => {
567568
return {
568569
value: val,

src/components/picker/picker-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ export class PickerCmp {
512512
if (!isPresent(column.options)) {
513513
column.options = [];
514514
}
515-
515+
column.selectedIndex = 0;
516516
column.options = column.options.map(inputOpt => {
517517
let opt: PickerColumnOption = {
518518
text: '',

0 commit comments

Comments
 (0)