The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

How to Clear a Data while dropdown is closed

<code> <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> </code>
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)

 
Deleted comment

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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.