Topic: Readonly label doesn't display by default

dhermann premium asked 10 months 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 10 months 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 premium commented 10 months 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: Premium
  • 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