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