UI - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: исправление самопроизвольно открытого селекта в деталях внутреннего контура
This commit is contained in:
parent
5b2a2fc104
commit
cbd40791e4
|
|
@ -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>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue