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
Describe the bug
Up through v7.11.2 any state/data updates didn't cause controlled inputs to be re-rendered within table columns. An input returned via the render didn't lose focus upon changing input value (which would update some field in the data passed to the table). With the release of v7.11.3 this behavior is now broken and the table re-renders causing the input to lose focus even when a single character is typed as it modifies the original state/data passed into the table.
To Reproduce
Steps to reproduce the behavior:
Install v7.11.2 of mantine-datatable.
Return a controlled input field in a column's custom render function that modifies the originally passed data prop of the table
Verify the controlled input field doesn't lose focus when its value is changed by typing into it
Install v7.11.3 of mantine-datatable.
See that the controlled input field loses focus when its value is changed by typing into it
Expected behavior
The table shouldn't do a complete re-render. The controlled input that's being currently changed, hence, shouldn't lose focus even when modifying the table's original data prop like it did pre-v7.11.3.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Ubuntu 24.04
Browser: Chrome
Version: 127.0.6533.72
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
@icflorescu I have a side question: Was it an accident that this new feature was released in a patch version?
If not, then we have to pin our versions explicitly because currently we only pinned major versions.
Describe the bug
Up through v7.11.2 any state/data updates didn't cause controlled inputs to be re-rendered within table columns. An input returned via the
render
didn't lose focus upon changing input value (which would update some field in the data passed to the table). With the release of v7.11.3 this behavior is now broken and the table re-renders causing the input to lose focus even when a single character is typed as it modifies the original state/data passed into the table.To Reproduce
Steps to reproduce the behavior:
mantine-datatable
.render
function that modifies the originally passeddata
prop of the tablemantine-datatable
.Expected behavior
The table shouldn't do a complete re-render. The controlled input that's being currently changed, hence, shouldn't lose focus even when modifying the table's original
data
prop like it did pre-v7.11.3.Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: