Skip to content

Commit

Permalink
fix(app): blur quick transfer well selection reset button on click (#…
Browse files Browse the repository at this point in the history
…16048)

blurs the quick transfer source and destination well selection reset buttons on click to remove the button focus styling

closes RQA-2863
  • Loading branch information
brenthagen authored Aug 26, 2024
1 parent 132e86f commit 0da0f4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/organisms/QuickTransferFlow/SelectDestWells.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ export function SelectDestWells(props: SelectDestWellsProps): JSX.Element {
const resetButtonProps: React.ComponentProps<typeof SmallButton> = {
buttonType: 'tertiaryLowLight',
buttonText: t('shared:reset'),
onClick: () => {
onClick: (e: React.MouseEvent<HTMLButtonElement>) => {
setIsNumberWellsSelectedError(false)
setSelectedWells({})
e.currentTarget.blur?.()
},
}
let labwareDefinition =
Expand Down
3 changes: 2 additions & 1 deletion app/src/organisms/QuickTransferFlow/SelectSourceWells.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ export function SelectSourceWells(props: SelectSourceWellsProps): JSX.Element {
const resetButtonProps: React.ComponentProps<typeof SmallButton> = {
buttonType: 'tertiaryLowLight',
buttonText: t('shared:reset'),
onClick: () => {
onClick: (e: React.MouseEvent<HTMLButtonElement>) => {
setSelectedWells({})
e.currentTarget.blur?.()
},
}
let displayLabwareDefinition = state.source
Expand Down

0 comments on commit 0da0f4d

Please sign in to comment.