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
A bug has been identified where the data of the Flex Toolbar has not been correctly cleaned up.
Calls such as $.removeData(this, COMPONENT_NAME$P); do not clean up data correctly, however the following call does correctly work $.removeData(this.element, COMPONENT_NAME$P);. I have seen 8 occurrences in the sohoxi.js file where this is passed.
Describe the bug
A clear and concise description of what the bug is.
As a side, when I made the changes locally I found I could hit a undefined scenario within these functions below. The pasted functions contain the possible checks /resolution to prevent an exception.
function doUnlinkSubmenuItem(actionMenuElement) {
var $originalMenuElement = $($(actionMenuElement).data('original-menu-element'));
if ($originalMenuElement) {
$originalMenuElement.removeData('action-button-link');
if ($originalMenuElement.hasClass('submenu')) {
var submenuItems = actionMenuElement.querySelector('.popupmenu').children;
for (var j = 0; j < submenuItems.length; j++) {
doUnlinkSubmenuItem(submenuItems[j]);
}
}
}
$(actionMenuElement).removeData('original-menu-element');
}
function doUnlinkToolbarItems(i, itemElement) {
var originalButton = $(itemElement).data('originalButton');
var originalButtonAPI = $(originalButton).data('toolbarflexitem');
if (originalButtonAPI) {
originalButtonAPI.actionButtonLink = null;
$(itemElement).removeData('original-button');
if (originalButtonAPI.type === 'menubutton') {
var submenuItems = itemElement.querySelector('.popupmenu').children;
for (var j = 0; j < submenuItems.length; j++) {
doUnlinkSubmenuItem(submenuItems[j]);
}
}
}
}
A bug has been identified where the data of the Flex Toolbar has not been correctly cleaned up.
Calls such as
$.removeData(this, COMPONENT_NAME$P);
do not clean up data correctly, however the following call does correctly work$.removeData(this.element, COMPONENT_NAME$P);
. I have seen 8 occurrences in the sohoxi.js file wherethis
is passed.Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
$('#flex-toolbar').data('toolbar-flex').destroy()
$('#flex-toolbar').data('toolbar-flex')
.The data is returned but this should have been cleared by the destroy call.
Expected behavior
Data to be cleared correctly, and not be returned back.
Version
4.56.0
Screenshots
N/A
Platform
The text was updated successfully, but these errors were encountered: