Skip to content

Commit

Permalink
refactor(Select): remove focus within disable
Browse files Browse the repository at this point in the history
  • Loading branch information
iapolya committed Feb 12, 2025
1 parent 0098771 commit 8dc8058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ export const Select = React.forwardRef<HTMLButtonElement, SelectProps>(function
},
[handleClose, onBlur],
),
isDisabled: mobile,
});

const uniqId = useUniqId();
Expand Down Expand Up @@ -309,7 +308,8 @@ export const Select = React.forwardRef<HTMLButtonElement, SelectProps>(function
<div
ref={controlWrapRef}
className={selectBlock(mods, className)}
{...focusWithinProps}
onFocus={mobile ? onFocus : focusWithinProps.onFocus}
onBlur={mobile ? onBlur : focusWithinProps.onBlur}
style={inlineStyles}
tabIndex={-1}
>
Expand Down

0 comments on commit 8dc8058

Please sign in to comment.