Skip to content

Commit

Permalink
[FIX] #43228 UI: render file preview only once.
Browse files Browse the repository at this point in the history
  • Loading branch information
thibsy committed Dec 13, 2024
1 parent c4aed77 commit 3b2058c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions components/ILIAS/UI/resources/js/Input/Field/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,6 @@ il.UI.Input = il.UI.Input || {};
preview = $(dropzones[input_id].options.previewsContainer.lastElementChild);
setupExpansionGlyphs(preview);

dropzones[input_id].options.previewsContainer.append(...preview.children());

// store rendered preview id temporarily in file, to retrieve
// the corresponding input later.
file.input_id = getFileEntryInput(preview).attr('id');
Expand Down

0 comments on commit 3b2058c

Please sign in to comment.