Skip to content

Commit

Permalink
Merge pull request #42443 from nextcloud/fix/41876/files--focus-file-…
Browse files Browse the repository at this point in the history
…name-on-new-folder-rename

fix(files): focus file name on renaming also initially
  • Loading branch information
ShGKme authored Jan 2, 2024
2 parents 7ac9031 + b6a9387 commit 2218897
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions apps/files/src/components/FileEntry/FileEntryName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,13 @@ export default Vue.extend({
* in the input, without the extension.
* @param renaming
*/
isRenaming(renaming: boolean) {
if (renaming) {
this.startRenaming()
}
isRenaming: {
immediate: true,
handler(renaming: boolean) {
if (renaming) {
this.startRenaming()
}
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit 2218897

Please sign in to comment.