fix(ui): fix crash when using dropdown on certain device resolutions

This commit is contained in:
psychedelicious 2023-06-09 22:08:30 +10:00
parent c53b7c7389
commit 7f91139e21

View File

@ -113,7 +113,7 @@ const IAICustomSelect = (props: IAICustomSelectProps) => {
)} )}
<Tooltip label={tooltip} {...tooltipProps}> <Tooltip label={tooltip} {...tooltipProps}>
<Flex <Flex
{...getToggleButtonProps({ ref: refs.setReference })} {...getToggleButtonProps({ ref: refs.reference })}
sx={{ sx={{
alignItems: 'center', alignItems: 'center',
userSelect: 'none', userSelect: 'none',
@ -154,7 +154,7 @@ const IAICustomSelect = (props: IAICustomSelectProps) => {
{isOpen && ( {isOpen && (
<List <List
as={Flex} as={Flex}
ref={refs.setFloating} ref={refs.floating}
sx={{ sx={{
...floatingStyles, ...floatingStyles,
top: 0, top: 0,