Various fixes (#11108)

Fixes many bug regarding TableCell and InlineCells
This commit is contained in:
Charles Bochet
2025-03-22 14:19:10 +01:00
committed by GitHub
parent 692e08f0d4
commit ccf60284cf
61 changed files with 473 additions and 374 deletions

View File

@ -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)}
/>
);
};