We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3dc43 commit e91fd7bCopy full SHA for e91fd7b
src-ts/lib/form/form-groups/form-input/input-file-picker/InputFilePicker.tsx
@@ -46,8 +46,9 @@ const InputFilePicker: FC<InputFilePickerProps> = (props: InputFilePickerProps)
46
className={styles.filePickerButton}
47
label={fileName ? 'Clear' : 'Browse'}
48
onClick={() => {
49
- if (fileName) {
+ if (fileName && fileInputRef.current) {
50
setFiles(null)
51
+ fileInputRef.current.value = ''
52
props.onChange(null)
53
} else {
54
fileInputRef.current?.click()
0 commit comments