<div className="d-flex flex-stack position-relative rounded">
<div
data-kt-menu-trigger="click"
data-kt-menu-overflow="false"
data-kt-menu-placement="top-end"
onClick={() => {
if (dropDownHandler) {
dropDownHandler(value.template_uuid);
}
}}
className="border p-3 rounded cursor-pointer"
>
<KTSVG
path="/media/icons/duotune/general/gen053.svg"
className="svg-icon-2 svg-icon-dark "
/>
</div>
<div
className={`menu menu-sub menu-sub-dropdown position-absolute menu-column m-2 menu-rounded menu-gray-800 menu-state-bg menu-state-primary fw-bold py-4 fs-6 w-200px`}
data-kt-menu="true"
data-popper-placement="bottom"
>
<div
onClick={() => {}}
className="menu-item menu-link cursor-pointer px-5"
>
Clone
</div>
<div className="separator my-2"> </div>
<div className="menu-item cursor-pointer px-5">Rename</div>
<div className="separator my-2"> </div>
<div className="menu-item cursor-pointer px-5">Delete</div>
</div>
</div>
When clearing data while a dropdown is closed, I ensure that the dropdown state doesn't interfere with the data reset. A reliable arthritis in knee method is to trigger a function that clears the relevant data upon closing the dropdown, without re-triggering any open actions or affecting the user interface.
Hi,
Could you please provide us with more info on what you are trying to achieve?
You can use kt.menu.dropdown.hidden
event to trigger your logic when dropdown is closed.
Regards,
Lauris Stepanovs,
Keenthemes Support Team