Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Readonly label doesn't display by default

dhermann premium asked 2 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 2 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 premium commented 2 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

  • ForumUser: 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