Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p-colorPicker not working | Failing on click #8746

Closed
AjeetRE opened this issue Apr 16, 2020 · 1 comment
Closed

p-colorPicker not working | Failing on click #8746

AjeetRE opened this issue Apr 16, 2020 · 1 comment
Assignees
Labels
LTS-FIXED-9.2.1 Fixed in PrimeNG LTS 9.2.1 LTS-FIXED-10.0.6 Fixed in PrimeNG LTS 10.0.6 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@AjeetRE
Copy link

AjeetRE commented Apr 16, 2020

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>
@DHalilovic
Copy link

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?

@cagataycivici cagataycivici added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Nov 23, 2020
@cagataycivici cagataycivici added this to the 11.0.0-rc.2 milestone Nov 23, 2020
@yigitfindikli yigitfindikli added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Nov 25, 2020
@yigitfindikli yigitfindikli added LTS-FIXED-10.0.6 Fixed in PrimeNG LTS 10.0.6 LTS-FIXED-9.2.1 Fixed in PrimeNG LTS 9.2.1 and removed LTS-PORTABLE labels Dec 7, 2020
@yigitfindikli yigitfindikli changed the title <p-colorPicker> not working | Failing on click p-colorPicker not working | Failing on click Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-FIXED-9.2.1 Fixed in PrimeNG LTS 9.2.1 LTS-FIXED-10.0.6 Fixed in PrimeNG LTS 10.0.6 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

4 participants