diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 692f8c9fe1fbe..91b0e2fffeaf8 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -309,7 +309,7 @@ const Dialogs = { multiselect = false } - $('body').prepend(self.$filePicker) + $(options?.target ?? 'body').prepend(self.$filePicker) self.$showGridView = $('button#picker-showgridview') self.$showGridView.on('click keydown', function(event) {