Skip to content

Commit

Permalink
Rebase updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Mar 26, 2024
1 parent a60f015 commit 888abe0
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function AccountAutocomplete({
});

return (
<Autocomplete<AccountAutocompleteItem>
<Autocomplete
strict={true}
highlightFirst={true}
embedded={embedded}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,6 @@ function SingleAutocomplete<T extends Item>({
},
};

useEffect(() => {
if (!isOpen) {
onClose?.();
}
}, [isOpen, onClose]);

// Update the selected item if the suggestion list or initial
// input value has changed
useEffect(() => {
Expand Down Expand Up @@ -631,7 +625,6 @@ function MultiAutocomplete<T extends Item>({
clearOnBlur = true,
...props
}: MultiAutocompleteProps<T>) {
selectedItems = selectedItems || [];
const [focused, setFocused] = useState(false);
const lastSelectedItems = useRef<typeof selectedItems>();
const selectedItemIds = selectedItems.map(getItemId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function CategoryAutocomplete({
);

return (
<Autocomplete<CategoryAutocompleteItem>
<Autocomplete
strict={true}
highlightFirst={true}
embedded={embedded}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export function PayeeAutocomplete({
const [payeeFieldFocused, setPayeeFieldFocused] = useState(false);

return (
<Autocomplete<PayeeAutocompleteItem>
<Autocomplete
key={focusTransferPayees ? 'transfers' : 'all'}
strict={true}
embedded={embedded}
Expand Down

0 comments on commit 888abe0

Please sign in to comment.