MDB 5 Color Picker preloading


Topic: MDB 5 Color Picker preloading

ltadmin pro premium priority asked 2 years ago

Expected behavior When initializing the color picker with a specific color, the Canvas, Color Dot, Hue Slider and Alpha slider are set to the color loaded on the creation of the color picker.

Actual behavior Canvas is set as default and loads on a Red hue no matter what was picked hue range is 0 (Min) alpha range is 1 (Max)

Resources (screenshots, code snippets etc.)

var picker = document.getElementById('ColorInput');
var pickerInstance = new ColorPicker(picker, { colorPickerValue: '#6610f2', colorPickerType:"hex", colorPickerColorPalette:true, colorPickerCopyIcon:true });

enter image description here


ltadmin pro premium priority commented 2 years ago

View Snippet here: https://mdbootstrap.com/snippets/standard/ltadmin/4576136#js-tab-view


kpienkowska staff answered 2 years ago

Thank you for letting us know about this bug. We will fix it shortly.


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 Standard
  • MDB Version: MDB5 5.0.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags