input's label being up even when input field in empty


Topic: input's label being up even when input field in empty

mdb2 pro asked 6 years ago

What can cause input's label being up even when input field in empty ?

Damian Gemza staff commented 6 years ago

Dear mdb2, Could you please specify: you submit a bug, or you're asking for a feature which will lift your label when an input is empty? If first one - please describe the problem which you're facing up. If the second one - There's no possibility to lift-up label when an input has no value. Best Regards, Damian

mdb2 pro answered 6 years ago

For some reason, the label is up even though the input has no value Is there a way to attach a snapshot ?

Damian Gemza staff commented 6 years ago

Make a screenshot and upload it to some image hosting like https://imgur.com, and paste me here a link to it. Best Regards, Damian

Alex Gotardi pro answered 6 years ago

check if in input element you set placeholder attribute, this empty or not set label to active


mdb2 pro commented 6 years ago

https://imgur.com/a/nSP7zKr

Damian Gemza staff commented 6 years ago

mdb2 - could you please provide us a code which you're using? It would help us to debug the problem. Best Regards, Damian

mdb2 pro answered 6 years ago

Found that stale code prevented label to stay up all the time
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No