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:
commit
d5b08d2ebb
1 changed files with 0 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue