|
|
|
@ -227,6 +227,8 @@ export class DropdownComponent extends StatefulControlComponent<State, ReadonlyA |
|
|
|
public selectIndex(suggestedIndex: number, fromUserAction: boolean) { |
|
|
|
const items = this.snapshot.suggestedItems || []; |
|
|
|
|
|
|
|
const selectedItem = items[suggestedIndex]; |
|
|
|
|
|
|
|
if (suggestedIndex < 0) { |
|
|
|
suggestedIndex = 0; |
|
|
|
} |
|
|
|
@ -235,8 +237,6 @@ export class DropdownComponent extends StatefulControlComponent<State, ReadonlyA |
|
|
|
suggestedIndex = items.length - 1; |
|
|
|
} |
|
|
|
|
|
|
|
const selectedItem = items[suggestedIndex]; |
|
|
|
|
|
|
|
if (fromUserAction) { |
|
|
|
let selectedValue = selectedItem; |
|
|
|
|
|
|
|
|