Various fixes (#11108)
Fixes many bug regarding TableCell and InlineCells
This commit is contained in:
@ -8,8 +8,6 @@ import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown';
|
||||
|
||||
import { CurrencyPickerHotkeyScope } from '../types/CurrencyPickerHotkeyScope';
|
||||
|
||||
import { TableHotkeyScope } from '@/object-record/record-table/types/TableHotkeyScope';
|
||||
import { useClickOutsideListener } from '@/ui/utilities/pointer-event/hooks/useClickOutsideListener';
|
||||
import { CurrencyPickerDropdownSelect } from './CurrencyPickerDropdownSelect';
|
||||
|
||||
const StyledDropdownButtonContainer = styled.div`
|
||||
@ -69,10 +67,6 @@ export const CurrencyPickerDropdownButton = ({
|
||||
closeDropdown();
|
||||
};
|
||||
|
||||
const { toggleClickOutsideListener } = useClickOutsideListener(
|
||||
TableHotkeyScope.CellEditMode,
|
||||
);
|
||||
|
||||
const currency = currencies.find(({ value }) => value === valueCode);
|
||||
|
||||
const currencyCode = currency?.value ?? CurrencyCode.USD;
|
||||
@ -98,8 +92,6 @@ export const CurrencyPickerDropdownButton = ({
|
||||
}
|
||||
dropdownPlacement="bottom-start"
|
||||
dropdownOffset={{ x: 0, y: 4 }}
|
||||
onOpen={() => toggleClickOutsideListener(false)}
|
||||
onClose={() => toggleClickOutsideListener(true)}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user