UI - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: исправление самопроизвольно открытого селекта в деталях внутреннего контура

This commit is contained in:
DCCONSTRUCTIONS 2026-04-20 18:08:07 +03:00
parent 5b2a2fc104
commit cbd40791e4
1 changed files with 93 additions and 87 deletions

View File

@ -127,6 +127,8 @@ export const IssueLabelSelect = observer(function IssueLabelSelect(props: IIssue
onChange={(value) => onSelect(value)}
multiple
>
{({ open }) => (
<>
<Combobox.Button as={Fragment}>
<button
ref={setReferenceElement}
@ -138,10 +140,12 @@ export const IssueLabelSelect = observer(function IssueLabelSelect(props: IIssue
</button>
</Combobox.Button>
{typeof document !== "undefined" &&
{open &&
typeof document !== "undefined" &&
createPortal(
<Combobox.Options className="fixed z-[760]" static>
<div
data-prevent-outside-click
className="nodedc-dropdown-surface nodedc-external-popup-anchor z-10 my-1 w-56 whitespace-nowrap"
ref={setPopperElement}
style={styles.popper}
@ -218,6 +222,8 @@ export const IssueLabelSelect = observer(function IssueLabelSelect(props: IIssue
</Combobox.Options>,
document.body
)}
</>
)}
</Combobox>
</>
);