Skip to content

Commit

Permalink
feat: type value change is string
Browse files Browse the repository at this point in the history
  • Loading branch information
damingerdai committed Jun 10, 2019
1 parent 24e07a1 commit 7c9ab01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/select/src/lib/select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class SelectComponent implements OnInit, OnDestroy, AfterContentInit {
public options: QueryList<OptionComponent>;

@Output()
public valueChange: EventEmitter<DamingOptionSelectionChange> = new EventEmitter<DamingOptionSelectionChange>();
public valueChange = new EventEmitter<string>();

@Input()
public placeHolder: string;
Expand Down Expand Up @@ -72,7 +72,7 @@ export class SelectComponent implements OnInit, OnDestroy, AfterContentInit {
).subscribe((option: DamingOptionSelectionChange) => {
this.value = option.value;
this.open = false;
this.valueChange.next(option);
this.valueChange.next(this.value);
});
}

Expand Down

0 comments on commit 7c9ab01

Please sign in to comment.