Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] type mismatch in NzInputComponent #271

Closed
standbyme opened this issue Sep 11, 2017 · 3 comments
Closed

[BUG] type mismatch in NzInputComponent #271

standbyme opened this issue Sep 11, 2017 · 3 comments

Comments

@standbyme
Copy link
Contributor

I'm submitting a...


[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Support request => Please do not submit support request here

Current behavior

  • ERROR in /ng-zorro-antd/src/components/input/nz-input.component.ts (149,7): Type 'string | boolean | AutoSizeType' is not assignable to type 'boolean | AutoSizeType'.
    Type 'string' is not assignable to type 'boolean | AutoSizeType'.

  • ERROR in /ng-zorro-antd/src/components/input/nz-input.directive.component.ts (72,7): Type 'string | boolean | AutoSizeType' is not assignable to type 'boolean | AutoSizeType'.
    Type 'string' is not assignable to type 'boolean | AutoSizeType'.

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Angular version: 4.0.0

ng-zorro-antd version: 0.5.0
@vthinkxie
Copy link
Member

vthinkxie commented Sep 11, 2017

it is not a mismatch, it is just a hack, with this code nzAutosize could work like an attribute.

<nz-input [(ngModel)]="inputValueOne" nzType="textarea" nzAutosize nzPlaceHolder="Autosize height based on content lines"></nz-input>

@standbyme
Copy link
Contributor Author

@vthinkxie Got it,thanks!

@lock
Copy link

lock bot commented Feb 19, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants