Skip to content

Commit 63859cc

Browse files
committed
Resolved conflicts after rebasing
1 parent 7313168 commit 63859cc

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
@@ -636,7 +636,7 @@ export class MdSelect extends _MdSelectMixinBase implements AfterContentInit, On
636636
private _selectValue(value: any, isUserInput = false): MdOption|undefined {
637637
const optionsArray = this.options.toArray();
638638

639-
const findOption = (option: MdOption) => {
639+
const correspondingOption = optionsArray.find((option: MdOption) => {
640640
try {
641641
return this._compareWith(option.value, value);
642642
} catch (error) {
@@ -646,8 +646,7 @@ export class MdSelect extends _MdSelectMixinBase implements AfterContentInit, On
646646
}
647647
return false;
648648
}
649-
};
650-
const correspondingOption = optionsArray.find(findOption);
649+
});
651650

652651
if (correspondingOption) {
653652
isUserInput ? correspondingOption._selectViaInteraction() : correspondingOption.select();

0 commit comments

Comments
 (0)