diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 1e39a52c2f8ef..b89c04ca0b588 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -321,7 +321,7 @@ const Dialogs = { var newButton = self.$filePicker.find('.actions.creatable .button-add') if (type === self.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) { - newButton.hide() + newButton.parentNode.hide() } newButton.on('focus', function() { self.$filePicker.ocdialog('setEnterCallback', function() {