oui
oui copied to clipboard
discovery table adds an scroll that is of no use
Describe the bug
Sometimes the discovery table adds an scroll that is of no use. This happens when we search for a value in the search bar that returns only 1 page of the table and then change the search to return more pages of results.
To Reproduce Steps to reproduce the behavior:
- Navigate to Discover
- Click on the search bar input
- Search for a value that returns just 1 page result
- Search for another value that returns a few results
Expected behavior
It shouldn't render a scroll in the table
Screenshots
https://github.com/opensearch-project/oui/assets/63758389/317b7873-300b-4778-a4ce-4d0cee488adb
Host/Environment (please complete the following information):
- OUI Version: 1.3
- OSD Version (if applicable): 2.10.0
- OS: Windows / Ubuntu
- Browser and version Chrome 120.0.6099.224
Additional context
Add any other context about the problem here.