From 4c8efc22e18bfebba0710577cbe4eedb4fb1bd1e Mon Sep 17 00:00:00 2001 From: Manuel Mtz-Almeida Date: Thu, 27 Apr 2017 21:27:52 +0200 Subject: [PATCH] fix(select): object as value fixes: #11413 --- src/components/select/select.ts | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/select/select.ts b/src/components/select/select.ts index ce9c1d66564..ea33f9b0d33 100644 --- a/src/components/select/select.ts +++ b/src/components/select/select.ts @@ -9,7 +9,7 @@ import { Config } from '../../config/config'; import { DeepLinker } from '../../navigation/deep-linker'; import { Form } from '../../util/form'; import { BaseInput } from '../../util/base-input'; -import { isCheckedProperty, isTrueProperty, deepCopy, deepEqual } from '../../util/util'; +import { isCheckedProperty, isTrueProperty, deepCopy, deepEqual, assert } from '../../util/util'; import { Item } from '../item/item'; import { NavController } from '../../navigation/nav-controller'; import { Option } from '../option/option'; @@ -147,13 +147,12 @@ import { SelectPopover, SelectPopoverOption } from './select-popover-component'; providers: [ { provide: NG_VALUE_ACCESSOR, useExisting: Select, multi: true } ], encapsulation: ViewEncapsulation.None, }) -export class Select extends BaseInput implements AfterViewInit, OnDestroy { +export class Select extends BaseInput implements AfterViewInit, OnDestroy { _multi: boolean = false; _options: QueryList