Topic: input floating label not trigger
Kushan Shanuka
asked 5 years ago
kmckinley
pro answered 5 years ago
<label [class.active]="user.city && user.city.length > 0" for="city">{{ 'City' | translate }}</label>
Michal Szymanski
staff answered 5 years ago
Kushan Shanuka
answered 5 years ago
Michal Szymanski
staff answered 5 years ago
Kushan Shanuka
answered 5 years ago
Mike Hutter
answered 5 years ago
Dave Fisher
pro answered 5 years ago
Mike Hutter
answered 5 years ago
Michal Szymanski
staff answered 5 years ago
marcin r.
pro answered 5 years ago
Michal Szymanski
staff answered 5 years ago
.active to the label when updating the input value.
Let me know if it solve your problem.
Another solution is keeping the label always up. You can do it via sass/css
go to sass/mdb/free/_form-basic.scss and in line 130 remove .active class.
label.active {
change to:
label {
Then compile your custom mdb.css
Rostislav
pro answered 4 years ago
polis.gints
pro answered 4 years ago
Closed
This topic is closed.
Closed
- User: Free
- Premium support: No
- Technology: Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No