Skip to content
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

get_widget can fail #927

Open
maartenbreddels opened this issue Dec 13, 2024 · 0 comments
Open

get_widget can fail #927

maartenbreddels opened this issue Dec 13, 2024 · 0 comments

Comments

@maartenbreddels
Copy link
Contributor

Although a reacton bug, it's happening in a solara context, so I thought for visibility it is better to post here.

Example 1
works, but Example 2 fails on get_widget when the Select changes.

The difference is:

# works
datagrid = ipydatagrid.DataGrid.element(dataframe=df_filtered, selection_mode="row")
# fails
datagrid = ipydatagrid.DataGrid.element(dataframe=df, selection_mode="row")

I can understand how this fails, since the parent (the implicit Column parent) will not rerender, breaking the relation between the element and the widget (it just ignores the new datagrid element, since it did not change).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant