Skip to content

Commit

Permalink
perf(files): do not render hidden editing field
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Sep 22, 2023
1 parent 4989f8f commit 7755c92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/components/FileEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</span>

<!-- Rename input -->
<form v-show="isRenaming"
<form v-if="isRenaming"
v-on-click-outside="stopRenaming"
:aria-hidden="!isRenaming"
:aria-label="t('files', 'Rename file')"
Expand All @@ -97,7 +97,7 @@
@keyup.esc="stopRenaming" />
</form>

<a v-show="!isRenaming"
<a v-else
ref="basename"
:aria-hidden="isRenaming"
class="files-list__row-name-link"
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 7755c92

Please sign in to comment.