I have a drawer and i want to use KTSelect in it. But dropdown menus does not shown
Hi mehmet yazıcı
KTSelect provides a dropdownContainer configuration option that lets you control where the dropdown menu is rendered in the DOM. When using KTSelect inside overlays like drawers or modals, it’s common for the dropdown to be hidden due to CSS overflow or stacking context issues. To fix this, set dropdownContainer: 'body' in your KTSelect config. This will render the dropdown at the root of the document, it will appears above the drawer and is not clipped. Example:
new KTSelect(element, {
dropdownContainer: 'body'
});
or
data-kt-select-dropdown-container="body"
This is the recommended approach for drawers, modals, or any container with restricted overflow.
Thanks