primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-colorPicker not working | Failing on click

Open AjeetRE opened this issue 6 years ago • 1 comments

Getting following errors

TypeError: Cannot read property 'h' of undefined at ColorPicker.push../node_modules/primeng/components/colorpicker/colorpicker.js.ColorPicker.pickColor (colorpicker.js:102) at ColorPicker.push../node_modules/primeng/components/colorpicker/colorpicker.js.ColorPicker.onColorMousedown (colorpicker.js:93) at Object.eval [as handleEvent] (ColorPicker.html:9) at handleEvent (core.js:24493) at callWithDebugContext (core.js:26070) at Object.debugHandleEvent [as handleEvent] (core.js:25681) at dispatchEvent (core.js:20898) at core.js:21561 at HTMLDivElement. (platform-browser.js:1678) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)

My Code

<p-colorPicker  (onChange)="color1 = $event.value"  format="rgb"  [inline]="true" ></pcolorPicker>

AjeetRE avatar Apr 16 '20 14:04 AjeetRE

I'm running into a similar issue with code as simple as

<p-colorPicker></p-colorPicker>

resulting in

core.js:6185 ERROR TypeError: Cannot read property 'h' of undefined
    at ColorPicker.updateColorSelector (primeng-colorpicker.js:174)
    at ColorPicker.onOverlayAnimationStart (primeng-colorpicker.js:205)
    at ColorPicker_div_3_Template_div_animation_overlayAnimation_start_0_listener (primeng-colorpicker.js:34)
    at executeListenerWithErrorHandling (core.js:21693)
    at wrapListenerIn_markDirtyAndPreventDefault (core.js:21735)
    at animations.js:373
    at Array.forEach (<anonymous>)
    at animations.js:367
    at ZoneDelegate.invoke (zone-evergreen.js:364)
    at Object.onInvoke (core.js:41286)

Have you found a cause/solution/alternative since then?

DHalilovic avatar Oct 30 '20 15:10 DHalilovic