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

List Editor doesn't highlight the selected element if the value is an integer #4480

Open
MetallianFR68 opened this issue Apr 23, 2024 · 0 comments
Labels
Possible Bug A possible bug that needs investigation

Comments

@MetallianFR68
Copy link

In a List Editor, if you set the values to something like [ { label:"MyLabel", value:30 } ],
when you first click the cell, the list doesn't autoselect the value MyLabel if the cell value is 30.

I think this is because the comparison is made between a string and an integer

The actual workaround is to add a mutator : mutator: value => value.toString()

It took me one hour to figure out

@MetallianFR68 MetallianFR68 added the Possible Bug A possible bug that needs investigation label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible Bug A possible bug that needs investigation
Projects
None yet
Development

No branches or pull requests

1 participant