aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorGrigorii K. Shartsev <me@shgk.me>2023-12-22 02:31:17 +0100
committerGrigorii K. Shartsev <me@shgk.me>2024-01-02 17:25:14 +0100
commitd682aa25be275e3da82822e08718211552a71b33 (patch)
treea9998c0c7d4871dafc85841cd33c8534a604bffd /apps/files
parent7ac903106fbb05841a2f20b526eb46dd6c0b68e8 (diff)
downloadnextcloud-server-d682aa25be275e3da82822e08718211552a71b33.tar.gz
nextcloud-server-d682aa25be275e3da82822e08718211552a71b33.zip
fix(files): focus file name on renaming also initially
When new folder is created, new file entry is initially in renaming mode. Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
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()
+ }
+ },
},
},