Skip to content

Commit

Permalink
fix: select initial values (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
nank1ro authored Oct 23, 2024
1 parent 5b90802 commit 5e5dbe5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.13.5

- **FIX**: Fix `ShadSelect` initial values on widget creation.

## 0.13.4+1

- **CHORE**: Update svg dependencies
Expand Down
1 change: 1 addition & 0 deletions lib/src/components/select.dart
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ class ShadSelectState<T> extends State<ShadSelect<T>> {
FocusNode? internalFocusNode;
late final selectedValues = <T>{
if (widget.initialValue is T) widget.initialValue as T,
...widget.initialValues,
};

ShadPopoverController? _controller;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: shadcn_ui
description: shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.
version: 0.13.4+1
version: 0.13.5
homepage: https://flutter-shadcn-ui.mariuti.com
repository: https://github.com/nank1ro/flutter-shadcn-ui
documentation: https://flutter-shadcn-ui.mariuti.com
Expand Down

0 comments on commit 5e5dbe5

Please sign in to comment.