summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorGrigorii K. Shartsev <me@shgk.me>2024-01-02 21:55:37 +0500
committerGitHub <noreply@github.com>2024-01-02 21:55:37 +0500
commit22188979f3d3a340cc6669a8e39601ef769023c9 (patch)
tree1697f859638953620f2a058931ff397d94b83984 /apps/files
parent7ac903106fbb05841a2f20b526eb46dd6c0b68e8 (diff)
parentb6a9387b385ad12c18ba7ae6c415c955aa7f07aa (diff)
downloadnextcloud-server-22188979f3d3a340cc6669a8e39601ef769023c9.tar.gz
nextcloud-server-22188979f3d3a340cc6669a8e39601ef769023c9.zip
Merge pull request #42443 from nextcloud/fix/41876/files--focus-file-name-on-new-folder-rename
fix(files): focus file name on renaming also initially
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryName.vue11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryName.vue b/apps/files/src/components/FileEntry/FileEntryName.vue
index 6f31727fbc2..87859de353a 100644
--- a/apps/files/src/components/FileEntry/FileEntryName.vue
+++ b/apps/files/src/components/FileEntry/FileEntryName.vue
@@ -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()
+ }
+ },
},
},