Skip to content

Commit

Permalink
fix: update value when options change with OptionsFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed May 13, 2024
1 parent e471951 commit 133f205
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions field_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ func (s *Select[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// position and filteredOptions.
s.selected = clamp(s.selected, 0, len(msg.options)-1)
s.filteredOptions = msg.options
s.updateValue()
}
case tea.KeyMsg:
s.err = nil
Expand Down

0 comments on commit 133f205

Please sign in to comment.