Skip to content

Commit

Permalink
(@rjsf/chakra-ui) Chakra-ui single-choice select widget - auto-close …
Browse files Browse the repository at this point in the history
…on selection (rjsf-team#3195)

Co-authored-by: dorofel <lisa.dorofeeva@lightsource.ca>
  • Loading branch information
ldorofeeva and dorofel committed Oct 13, 2022
1 parent b53e326 commit 27a8c70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,11 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
should change the heading of the (upcoming) version to include a major version bump.
-->
# 5.0.0-beta.12

## @rjsf/chakra-ui
- Automatically close single-choice Select widget on selection

# 5.0.0-beta.11

## @rjsf/antd
Expand Down
2 changes: 1 addition & 1 deletion packages/chakra-ui/src/SelectWidget/SelectWidget.tsx
Expand Up @@ -90,7 +90,7 @@ const SelectWidget = (props: WidgetProps) => {
isMulti={isMultiple}
options={enumOptions as OptionsOrGroups<unknown, GroupBase<unknown>>}
placeholder={placeholder}
closeMenuOnSelect={false}
closeMenuOnSelect={!isMultiple}
onBlur={_onBlur}
onChange={isMultiple ? _onMultiChange : _onChange}
onFocus={_onFocus}
Expand Down

0 comments on commit 27a8c70

Please sign in to comment.