feat(type_de_champ_editor): allow admin to move champ after previous champ. useless but better a11y
This commit is contained in:
parent
4da36531d4
commit
45d45c0d05
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