Merge pull request #30305 from nextcloud/fix-persistent-tooltip-in-the-new-folder-input-of-the-file-picker

This commit is contained in:
John Molakvoæ 2021-12-21 08:03:11 +01:00 committed by GitHub
commit 577fb0fcba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -327,6 +327,7 @@ const Dialogs = {
})
OC.registerMenu(newButton, self.$filePicker.find('.menu'), function() {
$input.tooltip('hide')
$input.focus()
self.$filePicker.ocdialog('setEnterCallback', function() {
event.stopImmediatePropagation()
@ -427,6 +428,9 @@ const Dialogs = {
$form.submit()
}
})
$input.on('input', function(event) {
$input.tooltip('hide')
})
self.$filePicker.ready(function() {
self.$fileListHeader = self.$filePicker.find('.filelist thead tr')