Fix infinite scrolling in search modals
This commit is contained in:
parent
788f8e9990
commit
db9fe8b21c
1 changed files with 2 additions and 2 deletions
|
|
@ -486,7 +486,7 @@ const SearchModal = (props: Props) => {
|
|||
{filterBar()}
|
||||
</header>
|
||||
|
||||
<div className={styles.results} ref={scrollContainer}>
|
||||
<div id="Results" className={styles.results} ref={scrollContainer}>
|
||||
<div className={styles.totalRow}>
|
||||
<h5 className={styles.total}>
|
||||
{t('search.result_count', { record_count: recordCount })}
|
||||
|
|
@ -503,7 +503,7 @@ const SearchModal = (props: Props) => {
|
|||
</div>
|
||||
)}
|
||||
</div>
|
||||
{open ? renderResults() : ''}
|
||||
{open && renderResults()}
|
||||
</div>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
|
|
|||
Loading…
Reference in a new issue