Edit EMA: 🐛 Custom Event select-contentlet
is triggering twice on ng-contentlet-selector
#26958
Labels
select-contentlet
is triggering twice on ng-contentlet-selector
#26958
Parent Issue
#26644
Problem Statement
When selecting a contentlet on contentlet selector, the event is triggering twice, resulting in a double request that ends in an error while saving the new content of the page.
Steps to Reproduce
ng-contentlet-selector
dialog in your screen.Screenshot of the error
Acceptance Criteria
dotCMS Version
master - latest
Proposed Objective
User Experience
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
We made some research about this issue. We found out that this is related to the event of the select button being bubbled up to the row, that has the same event. So, it triggers twice, one for the select and one for the Row.
Both events are being handled here:
core/dotCMS/src/main/webapp/html/js/dotcms/dijit/form/ContentSelector.js
Lines 1197 to 1216 in 0b95007
core/dotCMS/src/main/webapp/html/js/dotcms/dijit/form/ContentSelector.js
Lines 1282 to 1297 in 0b95007
And both handlers are using the method from here.
We don't have a fix at the moment, that's the reason of this ticket. We need to make further research to be sure of how are we going to solve this and to be sure that the fix should be made in one of those files.
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: