Skip to content

Commit

Permalink
fix(ui): Request Panel > Body > Binary File > after clicking x to cle…
Browse files Browse the repository at this point in the history
…ar selected file, can't select same file from file picker, without selecting another file
  • Loading branch information
flawiddsouza committed Dec 26, 2024
1 parent ef89a3f commit 790c676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/RequestPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@
<template v-if="activeTab.body.fileName">{{ activeTab.body.fileName.name }}</template>
<template v-else>No File Selected</template>
</span>
<span style="border: 1px solid lightgrey; padding: 1px 5px; white-space: nowrap; margin-left: auto;" @click.prevent="activeTab.body.fileName = null" v-show="activeTab.body.fileName">x</span>
<span style="border: 1px solid lightgrey; padding: 1px 5px; white-space: nowrap; margin-left: auto;" @click.prevent="activeTab.body.fileName = null; $refs.binaryFileInput.value = '';" v-show="activeTab.body.fileName">x</span>
</div>
<input type="file" @change="activeTab.body.fileName = $event.target.files[0]" style="display: none;">
<input type="file" ref="binaryFileInput" @change="activeTab.body.fileName = $event.target.files[0]" style="display: none;">
</label>
</div>
</div>
Expand Down

0 comments on commit 790c676

Please sign in to comment.