ng-zorro-antd
ng-zorro-antd copied to clipboard
Please add close method on nz-select like in nz-dropdown
What problem does this feature solve?
Currently if we want to close nz-select programmatically we need to use this.nzSelectComponent.nzOpen = false; Having close method in API, like in nz-dropdown would be great
What does the proposed API look like?
close(): void { this.nzSelectComponent.nzOpen = false; }
我也想要关闭方法。 目前通过nzOpenChange获取返回值,为false的时候调用this.nzSelectComponent.blur(); 踩了个坑...
I am using two-way binding, like this:
<nz-select [(nzOpen)]="isOpenSelect">...</nz-select>
close(): void {
this.isOpenSelect = false;
}
I am using two-way binding, like this:
<nz-select [(nzOpen)]="isOpenSelect">...</nz-select> close(): void { this.isOpenSelect = false; }
It works for me. Thanks!