Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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 <[email protected]>
  • Loading branch information
ShGKme committed Jan 2, 2024
commit 0ea5aa460431f9a5b1b364ffe4d6db1b47998284
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 @@ -174,10 +174,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