Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkmark icon is not shown on standard select boxes #2126

Closed
ahamana opened this issue Oct 26, 2018 · 4 comments
Closed

Checkmark icon is not shown on standard select boxes #2126

ahamana opened this issue Oct 26, 2018 · 4 comments

Comments

@ahamana
Copy link

ahamana commented Oct 26, 2018

After upgrading to v1.13.3, the checkmark icon is not shown on standard select boxes with the show-tick class.
You can see this issue at the "Checkmark on selected option" section on the attached archive file.

  • v1.13.2.html
    Checkmark icon is shown.
  • v1.13.3.html
    Checkmark icon is not shown.

reproduce.zip

@klaymen
Copy link

klaymen commented Mar 21, 2019

The issue is still valid with v1.13.8.
This might be related: #1425

In case you set the selectpicker and show-tick classes:

<select class="selectpicker show-tick">
  <option>Mustard</option>
  <option>Ketchup</option>
  <option>Relish</option>
</select>

and, you initialize from js, with the proper setting:

$( document ).ready(function() {
  $('select').selectpicker({
    showTick: true,
  });
});

it is working. However, this is rather a workaround than a solution.

@caseyjhol
Copy link
Member

Released in v1.13.9!

@CapDev
Copy link

CapDev commented Mar 31, 2019

After upgrading to 1.13.9 the checkmark icon is no longer showing for me on standard select boxes when using $.fn.selectpicker.Constructor.DEFAULTS.showTick = true; and not including the show-tick class with the select element.

In 1.13.8 and earlier the checkmark icon will display without having to add the show-tick class as it added by bootstrap-select when you change the showTick option to true as a constructor default or as an option in the javascript .selectpicker() call.

Is it required now to add the show-tick class to selects when needed instead of or along with using the showTick option?

Thanks for the great plugin.

@caseyjhol
Copy link
Member

Released in v1.13.10!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants