Skip to content

showSelectedCount option not working in tags mode #96

@akkichaubey

Description

@akkichaubey

showSelectedCount is not working with tag mode. here is my code

<select class="kt-select" data-kt-select="true" data-kt-select-enable-search="true"
	data-kt-select-placeholder="Select team members..." data-kt-select-multiple="true"
	data-kt-select-tags="true" data-kt-select-pre-selected="avinash_patel, dhruval_shah"
	data-kt-select-config='{
	"tagTemplate": "&lt;div class=\"flex items-center gap-2\"&gt;&lt;img src=\"{{avatar}}\" alt=\"{{text}}\" class=\"size-6 rounded-full\" /&gt; &lt;span class=\"text-foreground\"&gt;{{text}}&lt;/span&gt;&lt;/div&gt;",
	"displayTemplate": "&lt;div class=\"flex items-center gap-2\"&gt;&lt;img src=\"{{avatar}}\" alt=\"{{text}}\" class=\"size-6 rounded-full\" /&gt; &lt;span class=\"text-foreground\"&gt;{{text}}&lt;/span&gt;&lt;/div&gt;",
	"optionTemplate": "&lt;div class=\"flex items-center gap-2\"&gt;&lt;img src=\"{{avatar}}\" alt=\"{{text}}\" class=\"size-10  rounded-full\" /&gt; &lt;span class=\"text-foreground\"&gt;{{text}}&lt;/span&gt;&lt;/div&gt;&lt;svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"size-3.5 ms-auto hidden text-primary kt-select-option-selected:block\"&gt;&lt;path d=\"M20 6 9 17l-5-5\"/&gt;&lt;/svg&gt;",
	"optionsClass": "kt-scrollable overflow-auto max-h-[250px]",
	"showSelectedCount": true,
		"enableSelectAll": true,
		"selectAllText": "Select All",
		"clearAllText": "Clear All"
	  }'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions