Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Problem with KTMenu in modal


When I try to open the KTMenu in a modal the menu opens inside the modal but not under the button that performs the action

<div class="btn-group btn_side" id="content_actions">
<a id="locationProductsDropdownMenu" class="down" data-kt-menu-trigger="click" data-kt-menu-placement="bottom-end" data-kt-menu-offset="0px, 5px">
<div class="analytics-30 margin-r-2 btn-hover" title="@lang("labels.analytics-label-19")"></div>
</a>
<div class="menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-800 menu-state-bg-light-primary fw-semibold w-auto min-w-200px mw-300px" data-kt-menu="true">
<div class="menu-item px-3">
<a id="locationProductsFilteredToPDF" class="menu-link px-3">
@lang("labels.analytics-label-19")
</a>
</div>
<div class="menu-item px-3">
<a id="locationProductsFilteredToExcel" class="menu-link px-3">
@lang("labels.analytics-label-18")
</a>
</div>
</div>
</div>
<img src="https://imgur.com/a/h3Q7FAC" />

Thank


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 (4)


I solved it with data-kt-menu-overflow="true"

Thank.



Hi happy,

Great! All the best with your projects!

Regards.



<img src="https://i.imgur.com/qOHs5Vy.png" />



Hi,

Can you try to pass data-kt-menu-static="true" or data-kt-menu-static="false" or data-kt-menu-overflow="true" ? Please try to put the above attributes right beside data-kt-menu-trigger attribute.

Regards.


Deleted comment
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  :(