Skip to content

Commit

Permalink
Propagate clear press event as a change event for FlipInput2
Browse files Browse the repository at this point in the history
  • Loading branch information
samholmes committed Mar 29, 2024
1 parent 576fe60 commit b3976f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/themed/FlipInput2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ export const FlipInput2 = React.forwardRef<FlipInputRef, Props>((props: Props, r
})

const handleClearPress = useHandler(() => {
const newAmounts: [string, string] = ['', '']
setAmounts(newAmounts)
onNumericInputChange('')
})

const renderBottomRow = (fieldNum: FieldNum) => {
Expand Down

0 comments on commit b3976f9

Please sign in to comment.