Merge pull request #10298 from mfo/US/fix-move-after

ETQ Admin, quand je deplace les champs apres d'autre champ, ne pas griser le champs precedent
This commit is contained in:
Paul Chavard 2024-04-11 10:07:35 +00:00 committed by GitHub
commit d5b08d2ebb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,14 +48,6 @@ export class SelectChampPositionTemplateController extends ApplicationController
option.setAttribute('disabled', 'disabled');
}
});
options.map((option, index) => {
const previousOption = options[index - 1];
// can't move current element after previous element
if (previousOption && option.value == focusedSelectStableId) {
previousOption.setAttribute('selected', 'selected');
previousOption.setAttribute('disabled', 'disabled');
}
});
focusedSelect.innerHTML = options
.map((option) => option.outerHTML)