Ng-zorro-antd: select placeholder not work in form

Created on 9 Oct 2017  ·  8Comments  ·  Source: NG-ZORRO/ng-zorro-antd

my component.ts
```import {Component, OnInit} from '@angular/core'
import {FormBuilder, FormGroup} from '@angular/forms'

@Component({
selector: 'app-test',
templateUrl: './test.component.html',
styleUrls: ['./test.component.scss'],
})
export class TestComponent implements OnInit {
validateForm: FormGroup

constructor(private fb: FormBuilder) {
}

ngOnInit() {
this.validateForm = this.fb.group({
select: [null],
})
}
}

my template

```
I get this
wx20171009-134644

this select placeholder 'xx' is not work

🌈 Feature Request

Most helpful comment

反人类啊老铁,为啥这么设计啊

All 8 comments

nzShowSearch = true

反人类啊老铁,为啥这么设计啊

if there is no search input, there will be no place for placeholder.

Please add this information into official documents.
https://ng.ant.design/#/components/select

Hi all, this feature will be supported in next version.

@leeziiAtCn I am seeing that you include sass into the component but the ng-zorro-antd is based on less. Is it a typo or you made it ?

@vlados angular cli support using both sass and less in one project.

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

Was this page helpful?
0 / 5 - 0 ratings