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()}
|
{filterBar()}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div className={styles.results} ref={scrollContainer}>
|
<div id="Results" className={styles.results} ref={scrollContainer}>
|
||||||
<div className={styles.totalRow}>
|
<div className={styles.totalRow}>
|
||||||
<h5 className={styles.total}>
|
<h5 className={styles.total}>
|
||||||
{t('search.result_count', { record_count: recordCount })}
|
{t('search.result_count', { record_count: recordCount })}
|
||||||
|
|
@ -503,7 +503,7 @@ const SearchModal = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{open ? renderResults() : ''}
|
{open && renderResults()}
|
||||||
</div>
|
</div>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue