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

React: ToggleButton component is not setting the default value when URLParams is set to true #2287

Open
thuongqbd opened this issue Feb 26, 2024 · 1 comment
Labels

Comments

@thuongqbd
Copy link

thuongqbd commented Feb 26, 2024

Affected Projects
React

Library Version: x.y.z
^3.25.1, 3.45.0 and 4.2.2

Describe the bug
The label is reflected in the URL instead of the value.
If the value is present in URLParam and if you refresh the page, ToggleButton should have that value selected by default

To Reproduce
v4.2.2 https://codesandbox.io/p/sandbox/youthful-goldwasser-z65gp3
v3.45.0 https://codesandbox.io/p/sandbox/vigilant-euler-9xglky

Steps to reproduce the behavior:

Expected behavior
The value should be reflected in the URL instead of the label.

@thuongqbd thuongqbd added the bug label Feb 26, 2024
@thuongqbd thuongqbd changed the title React React: ToggleButton component is not setting the default value when URLParams is set to true Feb 26, 2024
@thuongqbd
Copy link
Author

The same issue in the Vue version was solved on #1657

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

No branches or pull requests

1 participant