Date input transparent value


Topic: Date input transparent value

Lubos asked 4 years ago

Expected behavior Date input value is visible.

Actual behavior Date input with value does not show the value, but suddenly shows value when user click on the input field. Class color: RGB... is applied and value is visible. I can force the value to be visible when input is displayed to user by applying class black-text but that may not be used in some other scenarios.

Resources (screenshots, code snippets etc.)


Grzegorz Bujański staff commented 4 years ago

Hi. This bug has already been reported to us. We'll fix it.


Lubos commented 4 years ago

Hello Grzegorz,

we are about to start project UAT, please when will this bug be fixed? Need to close this.

Thank you.


Grzegorz Bujański staff answered 4 years ago

Hi.

Unfortunately, at the moment I cannot say when it will be fixed. But I can suggest a workaround like this:

$(document).ready (() => {
  $('input').val("2020-12-20").css({color: "inherit"});
  $('label').addClass('active');
})

Lubos commented 4 years ago

Hi, thanks for the tip, works, Ďakujem.


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: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags