Refresh Section not happening after clicking on spellcheck icon
User has a radio button group, on change of radio button, it does section refresh and based on the selection different layout will be visible.
In the same section spell check icon is also present.
When user clicks on spell check icon and once the action is done, it changes the radio button value. It does not refresh the section, only the busy indicator symbol come and it stays indefinitely.
Steps to Reproduce
1.Create a section with a radio button, for example A,B,C and add on change Refresh Section action.
2.Add few dynamic layout in same section and provide visibility condition to layouts based on radio button selection.
3.Put a spell check icon in another layout with visibility always.
4.Add RTE to any of the layout which will be visible lets say for Radio Button value "A".
5.Run the flow.
6.Add wrong text to RTE and click on spell check icon.
7.Once spell check is done, change the radio button value. It does not refresh the section.
A defect in Pegasystems’ code or rules :-
A permission denied JS error occurs on refresh section after spellcheck, as the getListeners API is trying to access an orphaned RTE body.
Spell checker adds event listeners to RTE's body and when editor's setData is called in pre-submit function, it refreshes the body with new element.
Now the listener still holds reference to old orphaned element.
Apply HFix-26691 for RTE spell check and HFix-23749 for spell checker icon.