Topic: input floating label not trigger
Kushan Shanuka asked 9 years ago
kmckinley pro answered 8 years ago
<label [class.active]="user.city && user.city.length > 0" for="city">{{ 'City' | translate }}</label>
Michal Szymanski staff pro premium priority answered 9 years ago
Kushan Shanuka answered 9 years ago
Michal Szymanski staff pro premium priority answered 9 years ago
Kushan Shanuka answered 9 years ago
Mike Hutter answered 9 years ago
Dave Fisher pro answered 9 years ago
Mike Hutter answered 8 years ago
Michal Szymanski staff pro premium priority answered 8 years ago
marcin r. pro answered 8 years ago
Michal Szymanski staff pro premium priority 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 Rostislav pro answered 8 years ago
polis.gints pro answered 7 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
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No