Skip to content

Commit b1bb030

Browse files
committed
Resolved conflicts after rebasing
1 parent db2567c commit b1bb030

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/select/select.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ export class MdSelect extends _MdSelectMixinBase implements AfterContentInit, On
622622
private _selectValue(value: any, isUserInput = false): MdOption|undefined {
623623
const optionsArray = this.options.toArray();
624624

625-
const findOption = (option: MdOption) => {
625+
const correspondingOption = optionsArray.find((option: MdOption) => {
626626
try {
627627
return this._compareWith(option.value, value);
628628
} catch (error) {
@@ -632,8 +632,7 @@ export class MdSelect extends _MdSelectMixinBase implements AfterContentInit, On
632632
}
633633
return false;
634634
}
635-
};
636-
const correspondingOption = optionsArray.find(findOption);
635+
});
637636

638637
if (correspondingOption) {
639638
isUserInput ? correspondingOption._selectViaInteraction() : correspondingOption.select();

0 commit comments

Comments
 (0)