fix: support disabled on file

This commit is contained in:
Damien Roche 2024-12-17 09:30:42 +01:00
parent f4684033f1
commit 7f1a4d54a8
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ async function parseFileAsString(file: File | undefined): Promise<string> {
v-if="!inputFile"
type="file"
v-bind="{ ...config?.inputProps }"
:disabled="disabled"
:disabled="config?.inputProps?.disabled ?? disabled"
@change="async (ev: InputEvent) => {
const file = (ev.target as HTMLInputElement).files?.[0]
inputFile = file

View File

@ -39,7 +39,7 @@ async function parseFileAsString(file: File | undefined): Promise<string> {
v-if="!inputFile"
type="file"
v-bind="{ ...config?.inputProps }"
:disabled="disabled"
:disabled="config?.inputProps?.disabled ?? disabled"
@change="async (ev: InputEvent) => {
const file = (ev.target as HTMLInputElement).files?.[0]
inputFile = file