itsjavi / bootstrap-colorpicker

Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
https://itsjavi.com/bootstrap-colorpicker/
MIT License
1.38k stars 369 forks source link

Option to disable automatic conversion between HEX3and HEX6 colors #325

Closed erehulka closed 3 years ago

erehulka commented 3 years ago

Description

Added option to not automatically convert HEX3 colors (#RGB) to HEX6 (#RRGGBB). Corresponding option example has been added to Basics.hbs.

This has been addressed as an issue for quite some time, and unfortunately it wasn't possible to fix it without changing the source code, which wasn't the best idea, if this was installed via npm, or composer.

Everything has been checked and is working fine. If something will come up, I can change and fix this code.

Check list

Please fill this check list before submitting a pull request:

erehulka commented 3 years ago

Btw I know it is not the most elegant solution, but it doesn’t make big changes to original code, just adds one variable that is passed in ColorItem.js.