File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -614,13 +614,14 @@ class MultiSelect extends BaseComponent {
614
614
dropdownDiv . classList . add ( CLASS_NAME_SELECT_DROPDOWN )
615
615
616
616
if ( this . _config . selectAll && this . _config . multiple ) {
617
- const selectAll = document . createElement ( 'button' )
618
- selectAll . classList . add ( CLASS_NAME_SELECT_ALL )
619
- selectAll . innerHTML = this . _config . selectAllLabel
617
+ const selectAllButton = document . createElement ( 'button' )
618
+ selectAllButton . type = 'button'
619
+ selectAllButton . classList . add ( CLASS_NAME_SELECT_ALL )
620
+ selectAllButton . innerHTML = this . _config . selectAllLabel
620
621
621
- this . _selectAllElement = selectAll
622
+ this . _selectAllElement = selectAllButton
622
623
623
- dropdownDiv . append ( selectAll )
624
+ dropdownDiv . append ( selectAllButton )
624
625
}
625
626
626
627
const optionsDiv = document . createElement ( 'div' )
You can’t perform that action at this time.
0 commit comments