Topic: input floating label not trigger
Kushan Shanuka free asked 8 years ago
kmckinley pro answered 8 years ago
<label [class.active]="user.city && user.city.length > 0" for="city">{{ 'City' | translate }}</label>
Rostislav pro answered 7 years ago
Michal Szymanski staff answered 8 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
marcin r. pro answered 8 years ago
Michal Szymanski staff answered 8 years ago
Dave Fisher pro answered 8 years ago
Mike Hutter free answered 8 years ago
Kushan Shanuka free answered 8 years ago
Michal Szymanski staff answered 8 years ago
Kushan Shanuka free answered 8 years ago
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No