You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When wrapped in React.StrictMode, TableView's ScrollView doesn't adjust its height properly when items are removed. The height remains the same as before the items were removed, allowing the user to scroll the TableView's contents even if the content now fits in the provided height without overflow.
🤔 Expected Behavior
TableView's scrollview height should adjust itself automatically when items are removed/added
😯 Current Behavior
TableView's scrollview height doesn't adjust itself automatically when items are removed/added
💁 Possible Solution
Not sure, would need to figure out why React.StrictMode is causing this behavior. Feels similar to the other collection component bugs (ListBox, etc) strict mode issues.
In the non-strict mode case this is the size output/updates when removing the items via the button in the sandbox example:
in the strict mode case:
note the stale(?) contentHeight in the strict mode case that gets provided to the ScrollView. The same correct height is calculated and set but the stale height is the one used.
🐛 Bug Report
When wrapped in React.StrictMode, TableView's ScrollView doesn't adjust its height properly when items are removed. The height remains the same as before the items were removed, allowing the user to scroll the TableView's contents even if the content now fits in the provided height without overflow.
🤔 Expected Behavior
TableView's scrollview height should adjust itself automatically when items are removed/added
😯 Current Behavior
TableView's scrollview height doesn't adjust itself automatically when items are removed/added
💁 Possible Solution
Not sure, would need to figure out why React.StrictMode is causing this behavior. Feels similar to the other collection component bugs (ListBox, etc) strict mode issues.
🔦 Context
💻 Code Sample
https://codesandbox.io/s/zealous-villani-g4rbw?file=/src/App.js
🌍 Your Environment
🧢 Your Company/Team
🕷 Tracking Issue (optional)
The text was updated successfully, but these errors were encountered: