Color Picker: Disable alpha input


Topic: Color Picker: Disable alpha input

luc122c pro premium priority asked 2 years ago

Hi, the disableAlpha prop on the colour picker only seems disable the alpha slider to the right of the canvas. It does not seem to disable the alpha input box or remove alpha from the output value.

Expected behavior

Alpha functionality is disabled, giving RGB / HSL etc values.

"hsl(228,0.88,0.52)"

enter image description here

Actual behavior

Only the slider is disabled, which still allows alpha input/output.

"rgba(116,64,64,1)"

enter image description here

"rgba(76,44,44,0.5)"

enter image description here


Bartosz Cylwik staff answered 2 years ago

Hi, thanks for letting us know. We are going to work on that. For now you can search for that input via querySelector and set it as disabled if you want to. Best Regards!


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 3.1.1
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No