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

Cannot Search select 2 on modal and tabs


Hi I can't set select2 search on modal and tabs,? but other modal without tabs it is can to set search select2, how to upload image in this question??????


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


Hi,

To use Select2 in Bootstrap Modal please refer to this docs and pass data-dropdown-parent="#kt_modal_1" additional attribute to the select2 control.

Regards.



It is works, thank you so much Sean!



Hi!,

You are most welcome. If you need any further help please let us know.

Regards.


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.

plugins.bundle.js:25 Uncaught TypeError: Cannot read properties of undefined (reading 'backdrop')
at it._initializeBackDrop (plugins.bundle.js:25:142284)
at new it (plugins.bundle.js:25:141161)
at it.getOrCreateInstance (plugins.bundle.js:25:118788)
at HTMLAnchorElement.<anonymous> (plugins.bundle.js:25:145341)
at HTMLDocument.i (plugins.bundle.js:25:114726)


-------------------------------------------

this is error console when i open the modal, but there are have tabs



<img src=" width="800px">

so when open the modal and acitve in one tabs, we can't search on select2 element, how come?


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