itsjavi / bootstrap-colorpicker

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

Extension not working with `inline: false` #315

Open pnikkosis opened 4 years ago

pnikkosis commented 4 years ago

Description

color picker doesnt load, error on console is: TypeError: ExtensionClass is not a constructor at Colorpicker.registerExtension (Colorpicker.js:238) at Colorpicker.js:224

Context

Expected behavior

load color picker with swatches

Actual behavior

doesnt load and show error

Live Example

http://jsfiddle.net/Lb57n394/

itsjavi commented 4 years ago

your jsfiddle example has syntax errors and does not work and you are using a wrong extension name. https://itsjavi.com/bootstrap-colorpicker/tutorial-p04_Colorpicker_Extensions.html

but I've found out that swatches don't work without inline: true mode: bootstrap.js:1867 Uncaught TypeError: data[option] is not a function

https://jsfiddle.net/s7m1jtfc/1/