Skip to content

Commit

Permalink
Bugfix: 42377 & 42369: UI/Fields: Fix undefined input in file inputs (#…
Browse files Browse the repository at this point in the history
…8250)

* fix undefined input id by using parent's id

* fix undefined input id by using parents component selector

---------

Co-authored-by: Lukas Eichenauer <[email protected]>
  • Loading branch information
lukas-heinrich and lukas-heinrich authored Oct 24, 2024
1 parent 4cdfc50 commit af4791d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ILIAS/UI/resources/js/Input/Field/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ il.UI.Input = il.UI.Input || {};
* @type {{}}
*/
const SELECTOR = {
file_input: '.ui-input-file',
file_input: '[data-il-ui-component="file-field-input"]',
file_list: '.ui-input-file-input-list',
file_list_entry: '.ui-input-file-input',
file_entry_metadata: '.ui-input-file-metadata',
Expand Down Expand Up @@ -613,7 +613,7 @@ il.UI.Input = il.UI.Input || {};
if (typeof file_inputs[Symbol.iterator] === 'function') {
let to_process = 0;
for (let i = 0; i < file_inputs.length; i++) {
let input_id = file_inputs[i].id;
let input_id = $(file_inputs[i]).attr('id');
let dropzone = dropzones[input_id];
processRemovals(input_id, event);
to_process += dropzone.files.length;
Expand Down

0 comments on commit af4791d

Please sign in to comment.