Skip to content

Commit

Permalink
chore: add clamps
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 committed Nov 25, 2024
1 parent 297a966 commit 4529e9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/machines/angle-slider/src/angle-slider.machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ const invoke = {
const set = {
value: (ctx: MachineContext, value: number) => {
if (ctx.value === value) return
if (value < MIN_VALUE || value > MAX_VALUE) return

ctx.value = value
invoke.valueChange(ctx)
},
Expand Down

0 comments on commit 4529e9c

Please sign in to comment.