Skip to content

Commit 1509693

Browse files
committed
fix bs5 tag picker widget
1 parent 1dd7a3c commit 1509693

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

framework/core/forms/controls/bootstrap/tagpickercontrol.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ function controlToHTML($name, $label) {
109109
110110
$('#" . $this->id . "').attr('data-role', 'tagsinput').tagsinput({
111111
";
112-
if (bs4() || bs5())
112+
if (bs4())
113113
$script .= " tagClass: 'badge badge-info',";
114+
if (bs5())
115+
$script .= " tagClass: 'badge text-bg-info',";
114116
$script .= "
115117
typeaheadjs: {
116118
name: 'exptags',

0 commit comments

Comments
 (0)