Skip to content

fix: React: ToggleButton component is not setting the default value when URLP... - #2349

Open
Roshan931 wants to merge 1 commit into
appbaseio:nextfrom
Roshan931:prilog/fix-error-urlparamsprovider-serializes-08-21-2026-501136
Open

fix: React: ToggleButton component is not setting the default value when URLP...#2349
Roshan931 wants to merge 1 commit into
appbaseio:nextfrom
Roshan931:prilog/fix-error-urlparamsprovider-serializes-08-21-2026-501136

Conversation

@Roshan931

Copy link
Copy Markdown

Fixes #2287

Root cause

URLParamsProvider serializes ToggleButton selections by label

Changes

  • Make URLParamsProvider.getValue componentType-aware and emit the item's value (not label) for toggleButton selections, and stop discarding componentType when re-applying values on popstate so the URL serialization stays correct after back/forward navigation.

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

Successfully merging this pull request may close these issues.

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

1 participant