Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joduplessis committed Jun 13, 2024
1 parent 5bc2e2d commit 0308e7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export const Select = (props: SelectProps) => {
if (!option) return
if (option.disabled) return
onSelect(option, dismiss, clear)
// TODO: find out why this happens (maybe related to virtualization)
// refocus the elment because the forced scrolling (useEffect)
// causes the element to lose focus
if (as == 'virtual') {
Expand Down

0 comments on commit 0308e7d

Please sign in to comment.