Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/app/refactor/finance' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Jan 8, 2025
2 parents c46c117 + 5d418ad commit 79aff28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sections/finance/components/finance-quick-transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default function FinanceQuickTransfer({
centerMode: true,
swipeToSlide: true,
infinite: true,
focusOnSelect: true,
centerPadding: '0px',
rows: 1,
slidesToShow: list?.length > 7 ? 7 : (list?.length ?? 1),
Expand Down Expand Up @@ -199,6 +200,12 @@ export default function FinanceQuickTransfer({
// Handle changes in the input for the amount
const handleChangeInput = useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
setAmount(Number(event.target.value));

// Send the focus back to the input field, this is a workaround for the slider carousel
setTimeout(() => {
event.target.focus();
}, 25);

}, []);

// Validate the amount on blur
Expand Down

0 comments on commit 79aff28

Please sign in to comment.