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.

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.


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



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