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

input/output ID leaked value bug #245

Merged
merged 5 commits into from
Nov 6, 2023
Merged

input/output ID leaked value bug #245

merged 5 commits into from
Nov 6, 2023

Conversation

nstrayer
Copy link
Collaborator

@nstrayer nstrayer commented Nov 6, 2023

Due to additional logic added to the input for the ID property for inputs and outputs, when you would switch between two inputs or outputs of the same type (e.g. checkboxGroup) then you would see the previously selected input's ID in place of the current ones. See #243.

This PR fixes that bug by better structuring the hook logic in the InputId component and also adds an e2e test for the scenario to avoid future regressions.

Copy link

netlify bot commented Nov 6, 2023

Deploy Preview for shinyuieditor-storybook ready!

Name Link
🔨 Latest commit e394828
🔍 Latest deploy log https://app.netlify.com/sites/shinyuieditor-storybook/deploys/654940406b25980008fa8b88
😎 Deploy Preview https://deploy-preview-245--shinyuieditor-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nstrayer nstrayer merged commit a904975 into main Nov 6, 2023
3 checks passed
@nstrayer nstrayer deleted the checkbox-state-bug branch November 6, 2023 21:04
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.

checkbox group inputId persists when switching focus to new checkbox group
1 participant