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