diff options
author | Grigorii K. Shartsev <me@shgk.me> | 2023-12-22 02:31:17 +0100 |
---|---|---|
committer | Grigorii K. Shartsev <me@shgk.me> | 2024-01-02 17:25:14 +0100 |
commit | d682aa25be275e3da82822e08718211552a71b33 (patch) | |
tree | a9998c0c7d4871dafc85841cd33c8534a604bffd /apps/files | |
parent | 7ac903106fbb05841a2f20b526eb46dd6c0b68e8 (diff) | |
download | nextcloud-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.vue | 11 |
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() + } + }, }, }, |