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)}
|
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>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue