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

Select on Modal


form input select is too slow when i put in modal


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


Hi,

Please check how Select2 can be used within Bootstrap Moda here.

Regards.



I'm sorry but when i tested without modal, that is still slow when open the select, when total data is 2, here my code
<div class="col-md-5 fv-row">
<label
for="ispublic"
class="fw-semibold fs-6 mb-2 d-flex align-items-center"
>
Publik ?
</label>
<select name="ispublic" class="form-select form-select-solid">
<option value="1">Ya</option>
<option value="0">Tidak</option>
</select>
<div class="fv-plugins-message-container invalid-feedback error-text ispublic_error"></div>
</div>



Hi,

Could you please clarify your issue with more details ? The standard select is a HTML element and Metronic does not do anything manipulation with it. I wonder how it can be slow since its native HTML element.
Also it seems you copy paste the code from browser code inspector, instead get the code from template, since browser inspector adds dynamic markup to the code which does not work if you use it as default code.

Regards.


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