Nebular Nb Input empty string

630 Views Asked by At

The input textbox is using Nebular. I keep recieving this console error.

NbInput: Using empty string as a status is deprecated. Use basic instead. any way to fix this?

https://akveo.github.io/nebular/

1

There are 1 best solutions below

0
On

I removed it by replacing <input nbInput [status]="email.dirty ? (email.invalid ? 'danger' : 'success') : ''"> with <input nbInput [status]="email.dirty ? (email.invalid ? 'danger' : 'success') : 'basic'"> or better <input nbInput [status]="email.dirty ? (email.invalid ? 'danger' : 'success') : (email.invalid && email.touched ? 'danger' : 'basic')">