glideapps / glideapps/glide-data-grid

Dropdown Cell no longer displays values that are missing from allowed values

Open
#937 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

Hey guys,

Im using streamlit, which uses the glide-data-grid. Since the upgrade to glide-data-grid v6.0.0 it seems that the dropdown cell is no longer rendering cell values that arent in the list of allowed values. This breaks a lot of my use cases for the dropdown cell:

I often want my users to be able to add strictly unique rows to a dataframe. For example, I have a list of parameter names that the users should be able to add and assign values to. I only want the users to be able to add a parameter name once, so they can only assign one value to this parameter. I therefore remove the values that are already added from the available options. Prior to v6.0.0 the values would still be rendered, eventhough they were no longer part of the available options. It seems that this has now changed:

I believe the changes [here](https://github.com/glideapps/glide-data-grid/blob/131deaea80e6038a6759cac447ee28cb6429d93e/packages/cells/src/cells/dropdown-cell.tsx#L190) are whats causing this new behaviour.

Is there any way to get old bahviour back for this? Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.