Skip to content

Commit

Permalink
fix(bal-upload): duplicate file message not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
mladenplaninicic committed Nov 25, 2022
1 parent d0e726b commit ad0a617
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export class FileUpload implements FormInput<File[]> {

nativeInput!: HTMLInputElement
bundleSize = 0
fileValue = 'C:\fakepath'
inputValue?: File[] | undefined

@State() isOver = false
Expand Down Expand Up @@ -232,7 +231,7 @@ export class FileUpload implements FormInput<File[]> {
}

this.setFileList()
this.fileValue = ''
this.nativeInput.value = ''
}
}

Expand Down Expand Up @@ -384,7 +383,6 @@ export class FileUpload implements FormInput<File[]> {
>
<label class={['file-label', this.disabled || this.loading || this.readonly ? 'is-disabled' : ''].join(' ')}>
<input
value={this.fileValue}
class="file-input"
type="file"
name={this.name}
Expand Down

0 comments on commit ad0a617

Please sign in to comment.