Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Extension not working with inline: false #315

Open
pnikkosis opened this issue Jun 17, 2020 · 1 comment
Open

Extension not working with inline: false #315

pnikkosis opened this issue Jun 17, 2020 · 1 comment

Comments

@pnikkosis
Copy link

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

  • bootstrap-colorpicker version: 3.2.0
  • bootstrap version: 4
  • jQuery version: 3.4.1
  • Browser name and version: Chrome 83.0.4103.97 (Build oficial) (64 bits)
  • Operative System name an version: Windows 10

Expected behavior

load color picker with swatches

Actual behavior

doesnt load and show error

Live Example

http://jsfiddle.net/Lb57n394/

@itsjavi
Copy link
Owner

itsjavi commented Jun 21, 2020

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/

@itsjavi itsjavi changed the title ExtensionClass is not a constructor when trying to load swatches Extension not working with inline: false Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants