Skip to content

Commit

Permalink
[@mantine/core] Fix dropdown position not being updated after Select,…
Browse files Browse the repository at this point in the history
… MultiSelect and Autocomplete dropdown was flipped and user started searching (#3439)

* [@mantine/core] Select: only use open/close callback when value changes

* [@mantine/core] Select: do not use early return

* [@mantine/core] Menu - revert PR #2646

* [@mantine/core] recalculate dropdown position on search input change

* [@mantine/core] recalculate dropdown position on search input change
  • Loading branch information
wes337 committed Feb 3, 2023
1 parent 5dba872 commit 05e34db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mantine-core/src/MultiSelect/MultiSelect.tsx
Expand Up @@ -608,7 +608,7 @@ export const MultiSelect = forwardRef<HTMLInputElement, MultiSelectProps>((props
switchDirectionOnFlip={switchDirectionOnFlip}
zIndex={zIndex}
dropdownPosition={dropdownPosition}
positionDependencies={positionDependencies}
positionDependencies={[...positionDependencies, _searchValue]}
classNames={classNames}
styles={styles}
unstyled={unstyled}
Expand Down
2 changes: 1 addition & 1 deletion src/mantine-core/src/Select/Select.tsx
Expand Up @@ -552,7 +552,7 @@ export const Select = forwardRef<HTMLInputElement, SelectProps>((props, ref) =>
switchDirectionOnFlip={switchDirectionOnFlip}
zIndex={zIndex}
dropdownPosition={dropdownPosition}
positionDependencies={positionDependencies}
positionDependencies={[...positionDependencies, inputValue]}
classNames={classNames}
styles={styles}
unstyled={unstyled}
Expand Down

0 comments on commit 05e34db

Please sign in to comment.