Component: p-overlayPanel - appendTo="body" trigger automatic hide event and closing the the p-overlayPanel. #13950
Labels
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Hi,
I am using p-overlayPanel and loading a p-table that has a context menu:
<p-contextMenu #cm [model]="menuItems" appendTo="body" styleClass="min-w-max">
I have identified after updating to latest PrimeNg release that appendTo="body" triggers by some reason a hide-event that will automatic close my p-overlayPanel. Any component that use appendTo="body" within the p-contextMenu will trigger this hide to appear. Right now have I removed appendTo="body" on all places. But for p-contextMenu its impossible as the menu without this setting will appear not attached to the row in the p-table.
Environment
Running node locally on my computer and use Angular / Primeng against a local Wildfly appliation server. The identified problem is only within PrimeNg/Angular.
Part of my package.json:
"dependencies": {
"@angular-devkit/build-angular": "16.2.6",
"@angular/animations": "16.2.8",
"@angular/cdk": "16.2.7",
"@angular/common": "16.2.8",
"@angular/compiler": "16.2.8",
"@angular/core": "16.2.8",
"@angular/forms": "16.2.8",
"@angular/platform-browser": "16.2.8",
"@angular/platform-browser-dynamic": "16.2.8",
"@angular/platform-server": "16.2.8",
"@angular/router": "16.2.8",
"@fullcalendar/angular": "^6.1.9",
"@fullcalendar/core": "^6.1.9",
"@fullcalendar/daygrid": "^6.1.9",
"@fullcalendar/interaction": "^6.1.9",
"@fullcalendar/list": "^6.1.9",
"@fullcalendar/resource": "^6.1.9",
"@fullcalendar/resource-timeline": "^6.1.9",
"@fullcalendar/timegrid": "^6.1.9",
"ajv-keywords": "^5.1.0",
"chart.js": "^4.4.0",
"classlist.js": "^1.1.20150312",
"core-js": "^3.33.0",
"dexie": "^3.2.4",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"nanoscroller": "0.8.7",
"node-sass": "^9.0.0",
"npm": "^10.2.0",
"primeflex": "^3.3.1",
"primeicons": "^6.0.1",
"primeng": "16.5.0",
"quill": "^1.3.7",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"typescript": "5.1.6",
"web-animations-js": "^2.3.2",
"xlsx": "^0.18.5",
"zone.js": "~0.13.1"
},
"devDependencies": {
"@angular/cli": "16.2.6",
"@angular/compiler-cli": "16.2.8",
"@types/jasmine": "^5.1.0",
"@types/node": "^20.8.4",
"ajv": "^8.12.0",
"codelyzer": "^6.0.2",
"eslint": "^8.51.0",
"file-saver": "^2.0.5",
"jasmine-core": "~5.1.1",
"jasmine-spec-reporter": "~7.0.0",
"karma": "^6.4.2",
"karma-chrome-launcher": "~3.2.0",
"karma-cli": "~2.0.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "^2.1.0",
"lite-server": "^2.6.1",
"prettier": "^3.0.3",
"pretty-quick": "^3.1.3",
"protractor": "~7.0.0",
"source-map-explorer": "^2.5.3",
"ts-node": "^10.9.1"
}
Reproducer
No response
Angular version
16.2.6
PrimeNG version
16.5.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.2
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
p-overlayPanel should not close (get a an hide event) from "somewhere" - unclear who is emitting this event!
The text was updated successfully, but these errors were encountered: