Skip to content

Allow for External Dropdown State Control - #215

Merged
krowvin merged 10 commits into
mainfrom
dropdown-state
Apr 13, 2026
Merged

Allow for External Dropdown State Control#215
krowvin merged 10 commits into
mainfrom
dropdown-state

Conversation

@krowvin

@krowvin krowvin commented Jul 29, 2025

Copy link
Copy Markdown
Contributor

Talking with @jbkolze he needed to be able to control dropdowns from outside the dropdown component.

This PR shows how that could be done while also maintaining a default of dropdowns state management for you. If you do not handle state by default, when value is not provided, this will break backwards compatibility. (Major Bump)

Documentation was updated to show both scenarios.

Marking as draft pending a larger conversation of not handling state in GW components.

@github-actions

Copy link
Copy Markdown

Please set a versioning label of either major-bump, minor-bump, or patch-bump to the pull request.

@krowvin
krowvin marked this pull request as draft July 29, 2025 15:45
@krowvin

krowvin commented Aug 18, 2025

Copy link
Copy Markdown
Contributor Author

Remove internal state per previous discussion, pass in props

@krowvin
krowvin marked this pull request as ready for review September 16, 2025 04:10

@jbkolze jbkolze left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a comment on defaultValue. Looks good otherwise.

Comment thread lib/components/form/dropdown.jsx Outdated
Comment thread lib/components/display/modal.jsx
@krowvin
krowvin requested a review from jbkolze March 28, 2026 15:23
@krowvin krowvin self-assigned this Mar 28, 2026

@jbkolze jbkolze left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@krowvin
krowvin merged commit 366b63a into main Apr 13, 2026
@krowvin
krowvin deleted the dropdown-state branch April 13, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants