Improve tests

This commit is contained in:
Charles Bochet
2023-10-24 17:13:50 +02:00
parent d58b85df54
commit 48c9ea855a
3 changed files with 8 additions and 5 deletions

View File

@ -53,7 +53,6 @@ export const Dropdown = ({
const { isDropdownOpen, toggleDropdown, closeDropdown, dropdownWidth } =
useDropdown();
const dropdownWidthState = dropdownMenuWidth ?? dropdownWidth;
const offsetMiddlewares = [];
if (dropdownOffset.x) {
offsetMiddlewares.push(offset({ crossAxis: dropdownOffset.x }));
@ -112,7 +111,7 @@ export const Dropdown = ({
)}
{isDropdownOpen && (
<DropdownMenu
width={dropdownWidthState}
width={dropdownMenuWidth ?? dropdownWidth}
data-select-disable
ref={refs.setFloating}
style={floatingStyles}