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

Select2 and Tooltip with Metronic 8


I'm using Metronic 8.x with Bootstrap...

I added a Select2 component and tried to add tooltips, however, adding it deletes the text from the placeholder.


This way, the tooltip is displayed, but the placeholder is not:

<select name="impuesto" aria-label="Selecciona Impuesto" data-control="select2" data-placeholder="Impuesto" data-allow-clear="true" class="form-select form-select-solid" data-bs-toggle="tooltip" data-bs-placement="top" title="Impuesto" >


In this way, if the placeholder is displayed (without the tooltip):

<select name="impuesto" aria-label="Selecciona Impuesto" data-control="select2" data-placeholder="Impuesto" data-allow-clear="true" class="form-select form-select-solid">


Can you help me display the placeholder and tooltip simultaneously?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Please try to wrap select2 with a div and apply the tooltip of the container Div.
Select 2 has own events and it may be conflicted with Tooltip events.

Regards,


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(