-
Notifications
You must be signed in to change notification settings - Fork 102
[AnalyticalTable] Rerenders reset custom column width #7179
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
Comments
Hi @ej612 since the I've moved the array outside and then it's working as intended: https://stackblitz.com/edit/github-mi6h4y3x-jctqkpc2?file=src%2FApp.tsx In case you need to manipulate the I'm going to close this issue now, but in case something isn't clear or still doesn't work, feel free to add a comment here again :) |
Hi @Lukas742, thank you!! Your insights made me find the problem on our end. :) |
Hi @Lukas742, I'm going to need some more help with this, I haven't managed to get it to work in our code. I managed to break the sandbox again by adding a table hook: Do you have a recommendation for how to fix this? |
In this case memoization will help again, but I only realized now that you could also set Here you can find an example showing both approaches (memoization and setting |
Hi @Lukas742, Thanks for your response! You're definitely right, it's going to most likely be botched memoization on our side. I tried hard to find the root cause, but I couldn't. |
Describe the bug
Hi there!
I have a UI bug that I don't know what to make of: Our AnalyticalTable forgets a custom column width when it's rerendered, but only on the second rerender.
Steps to reproduce:
-> The column width has been reset
Video
20250402-1227-31.8767842.mp4
Note: If I remove my custom
selectedRowIds
logic, the bug doesn't occur.Thanks in advance!
UI5 Web Components for React Version
2.8.1
UI5 Web Components Version
2.8.0
Browser
Chrome
The text was updated successfully, but these errors were encountered: