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: Color Picker: Disable alpha input

luc122c 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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 3.1.1
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: Yes
  • Provided link: No