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

Unable to have noneSelectedText with HTML with latest version #2856

Open
kpagcha opened this issue Dec 21, 2023 · 0 comments
Open

Unable to have noneSelectedText with HTML with latest version #2856

kpagcha opened this issue Dec 21, 2023 · 0 comments
Labels

Comments

@kpagcha
Copy link

kpagcha commented Dec 21, 2023

I used to have a none selected text with an icon that looked just fine:

<select multiple id="team-filter" class="selectpicker" data-empty-label="<span class='mr-2 small'><i class='far fa-people-group'></i></span>Teams">

const $filter = $(this);
const isLongList = $filter.find('option').length > 10;
$filter.selectpicker({
    styleBase: 'll-btn ll-filter-btn btn sm',
    dropupAuto: true,
    noneSelectedText: $filter.data('empty-label'),
    hideDisabled: true,
    liveSearch: isLongList,
    liveSearchPlaceholder: isLongList ? "Search option" : null,
    actionsBox: isLongList,
    selectAllText: `<span class="mr-1"><i class="fal fa-circle-check"></i></span>Select All`,
    deselectAllText: `<span class="mr-1"><i class="fal fa-circle-minus"></i></span>Deselect All`,
    width: 'auto',
    selectOnTab: true,
    dropdownAlignRight: 'auto'
});

But now it renders as text instead of HTML.

Before:

imagen

After:

imagen

Using sanitize: false does nothing.

@kpagcha kpagcha added the bug label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant