function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gaisergaiser 

functions.js:moveOption(...) - onchange notification bug?

Looks like method moveOption() from functions.js (ex. https://emea.salesforce.com/js/functions.js) incorrectly notifies sourceSelect about its content change
Currently it looks like
Code:
// notify the Select Elements that their contents have changed
...
if (sourceSelect["onchange"]) {
sourceSelect.onchange();
}

// remove selected values from the source, starting with the last one selected
for (var i = selectedIds.length - 1; i > -1; i--) {
sourceSelect.remove(selectedIds[i]);
}
Obviously call of sourceSelect.onchange() should be done after "sourceSelect.remove(selectedIds[i])" cycle, not before.