diff --git a/components/select/select.ts b/components/select/select.ts index 286dcfe3..3054507e 100755 --- a/components/select/select.ts +++ b/components/select/select.ts @@ -293,6 +293,7 @@ export class SelectComponent implements OnInit { @Output() public selected:EventEmitter = new EventEmitter(); @Output() public removed:EventEmitter = new EventEmitter(); @Output() public typed:EventEmitter = new EventEmitter(); + @Output() public opened:EventEmitter = new EventEmitter(); public options:Array = []; public itemObjects:Array = []; @@ -303,8 +304,17 @@ export class SelectComponent implements OnInit { return this._active; } + private set optionsOpened(value:boolean){ + this._optionsOpened = value; + this.opened.emit(value); + } + + private get optionsOpened(): boolean{ + return this._optionsOpened; + } + private inputMode:boolean = false; - private optionsOpened:boolean = false; + private _optionsOpened:boolean = false; private behavior:OptionsBehavior; private inputValue:string = ''; private _items:Array = [];