Readonly label doesn't display by default


Topic: Readonly label doesn't display by default

dhermann pro premium asked 3 years ago

When code listed on site for Readonly input is opened in snippet, label is not displayed by default. The element must be focused. I need to display the label and the value regardless of focus state.

https://mdbootstrap.com/snippets/standard/dhermann/3952904


Grzegorz Bujański staff commented 3 years ago

In this case, there was a bug in our documentation - the visible example has a value set, not a placeholder. We improved the code below the example. The action of the label is intentional - it should be active only if the input has added a value. The placeholder itself does not activate the label.


dhermann pro premium commented 3 years ago

Thanks Grzegorz.


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: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: Desktop
  • Browser: Safari
  • OS: macOS Monterrey 12.0.1
  • Provided sample code: No
  • Provided link: Yes
Tags