You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking on one of the buttons, will lead to the following console error:
.localservice@runtime.134daa3c.js:26 ERROR TypeError: Cannot read properties of null (reading 'offsetParent')
at _StyleClass.clickListener (primeng_styleclass.js?v=52dd93ed:123:23)
at StyleClass_click_HostBindingHandler (primeng_styleclass.js?v=52dd93ed:281:22)
at executeListenerWithErrorHandling (chunk-W5QGBK3I.js?v=52dd93ed:20172:12)
at wrapListenerIn_markDirtyAndPreventDefault (chunk-W5QGBK3I.js?v=52dd93ed:20192:18)
at HTMLElement.<anonymous> (chunk-HNFVE3SF.js?v=52dd93ed:2981:112)
at _ZoneDelegate.invokeTask (zone.js:402:33)
at chunk-W5QGBK3I.js?v=52dd93ed:8574:49
at AsyncStackTaggingZoneSpec.onInvokeTask (chunk-W5QGBK3I.js?v=52dd93ed:8574:30)
at _ZoneDelegate.invokeTask (zone.js:401:38)
at Object.onInvokeTask (chunk-W5QGBK3I.js?v=52dd93ed:8764:25)
(Copy&Pasted from the stackblitz example).
This happens only when a button inside a buttonGroup is clicked.
Describe the bug
Clicking buttons inside a button group leads to console errors. See either stackblitz example below or this simplified example:
When clicking on one of the buttons, will lead to the following console error:
(Copy&Pasted from the stackblitz example).
This happens only when a button inside a buttonGroup is clicked.
Environment
Reproducer
https://stackblitz.com/edit/stackblitz-starters-1zfded
Angular version
18.1
PrimeNG version
18.0.0-beta.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.20.3
Browser(s)
Chrome
Steps to reproduce the behavior
Clicking a button inside a button-group where the
p-buttonGroup
has astyleClass
.Expected behavior
No response
The text was updated successfully, but these errors were encountered: