Skip to content

Commit 51fa7f9

Browse files
committed
feat(filepicker): Allow to pass target for rendering the file picker to different locations
Signed-off-by: Julius Härtl <[email protected]>
1 parent 39caa6d commit 51fa7f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/OC/dialogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const Dialogs = {
309309
multiselect = false
310310
}
311311

312-
$('body').prepend(self.$filePicker)
312+
$(options?.target ?? 'body').prepend(self.$filePicker)
313313

314314
self.$showGridView = $('button#picker-showgridview')
315315
self.$showGridView.on('click keydown', function(event) {

0 commit comments

Comments
 (0)