I have next config
<Select
// isLoading={true}
ref={ref}
className="mobile-listitemselect"
classNamePrefix="mobile-listitemselect"
isSearchable={false}
options={prices}
placeholder={""}
menuPlacement="auto"
onChange={handlerSelect}
components={{ DropdownIndicator }}
menuPortalTarget={document.querySelector("body")}
/>
but when i first time open select, it add event on click to whole doc, and after close menu this click not destroyed.
If I remove menuPortalTarget, event not adding, but i use it for lift up menu.
How I can fix this?
I have next config <Select // isLoading={true} ref={ref} className="mobile-listitemselect" classNamePrefix="mobile-listitemselect" isSearchable={false} options={prices} placeholder={""} menuPlacement="auto" onChange={handlerSelect} components={{ DropdownIndicator }} menuPortalTarget={document.querySelector("body")} />
but when i first time open select, it add event on click to whole doc, and after close menu this click not destroyed. If I remove menuPortalTarget, event not adding, but i use it for lift up menu. How I can fix this?