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