fix button disable for search page
This commit is contained in:
@@ -321,14 +321,14 @@ export default function SectionSearchFile() {
|
|||||||
style={{ display: 'none' }}
|
style={{ display: 'none' }}
|
||||||
onChange={handleFileInputChange}
|
onChange={handleFileInputChange}
|
||||||
aria-label="Выбор файла для защиты"
|
aria-label="Выбор файла для защиты"
|
||||||
disabled={isFileSearchLoading || (uploadProgress !== undefined && uploadProgress !== 100)}
|
disabled={isFileSearchLoading || (uploadProgress && uploadProgress !== 100 ? true : false)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
className="btn btn-primary"
|
className="btn btn-primary"
|
||||||
onClick={handleButtonClick}
|
onClick={handleButtonClick}
|
||||||
type="button"
|
type="button"
|
||||||
disabled={isFileSearchLoading || (uploadProgress !== undefined && uploadProgress !== 100)}
|
disabled={isFileSearchLoading || (uploadProgress && uploadProgress !== 100 ? true : false)}
|
||||||
>
|
>
|
||||||
Выбрать файл
|
Выбрать файл
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user