Skip to content

Commit 3771d87

Browse files
committed
fix(MultiSelect): add the missing type="button" attribute to the tag close button
1 parent cc00000 commit 3771d87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/src/multi-select.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ class MultiSelect extends BaseComponent {
601601
tag.innerHTML = text
602602

603603
const closeBtn = document.createElement('button')
604+
closeBtn.type = 'button'
604605
closeBtn.classList.add(CLASS_NAME_TAG_DELETE)
605606
closeBtn.setAttribute('aria-label', 'Close')
606607

0 commit comments

Comments
 (0)