Skip to content

Commit

Permalink
fix: prevent button focus
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Feb 28, 2024
1 parent 54f2e65 commit 2d095ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "simple-git-hooks",
"dev": "vite --force",
"dev": "vite",
"build": "vite build",
"build:test": "vite build --mode test",
"preview": "vite preview",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async function handleAfterRead(file: VarFile) {
<div class="flex flex-col justify-center items-center min-h-screen p-[24px]">
<var-input class="w-[300px] mt-[6px]" placeholder="e.g. #f82506" variant="outlined" v-model.trim="source">
<template #append-icon>
<var-uploader hide-list v-model="files" @after-read="handleAfterRead">
<var-uploader hide-list v-model="files" @after-read="handleAfterRead" @mousedown.stop>
<var-button type="primary">Upload Image</var-button>
</var-uploader>
</template>
Expand Down

0 comments on commit 2d095ba

Please sign in to comment.