-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EuiDataGrid] Row height options props update doesn't work #5524
Comments
Reproduced in a code sandbox: https://codesandbox.io/s/elegant-euclid-27puv?file=/demo.js Selecting a new default height does not change which height the grid says is its deafult, and once a user selects a height from the grid's popover, the application's setting has no effect. |
Will take a look into fixing this shortly! As a heads up, I also chatted with @kertal when he pinged me about this issue and I just wanted to raise another possible edge case related to consumers/developers updating the The fix for this will address the following scenario:
The fix for this will not address the following scenario:
@kertal described this latter behavior as not what their app wants, which would need discussion from UX/our team IMO, because it's a deviation from the current intentional UX. I also suggested a possible workaround of completely remounting the data grid (which would clear user settings), since he also incidentally described their desired behavior as being tied to page/URL state. |
What triggered no. 3 in that second scenario?
Seems to me if the user initiated this reset to "auto" through some other piece of the UI, then it is ok to re-render the grid with this new setting. |
Summary
Updating
rowHeightOptions
prop doesn't lead change of display option (single
/auto height
/custom
), butDataGrid
itself updates height correctly.The text was updated successfully, but these errors were encountered: