Skip to content

Commit

Permalink
chore: update select
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Aug 16, 2023
1 parent 14a78a2 commit a38d8e3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/machines/select/src/select.machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,12 @@ const invoke = {

const set = {
selectedOption: (ctx: MachineContext, value: Option | null | undefined, force = false) => {
// TODO: account for change
if (!value && !force) return
ctx.prevSelectedOption = ctx.selectedOption
ctx.selectedOption = value || null
invoke.change(ctx)
},
highlightedOption: (ctx: MachineContext, value: Option | null | undefined, force = false) => {
// TODO: account for change
if (!value && !force) return
ctx.prevHighlightedOption = ctx.highlightedOption
ctx.highlightedOption = value || null
Expand Down

0 comments on commit a38d8e3

Please sign in to comment.