File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 548
548
* @return {void}
549
549
*/
550
550
toggleDropdown (e ) {
551
+ const target = e .target ;
551
552
const toggleTargets = [
552
553
this .$el ,
553
554
this .searchEl ,
554
555
this .$refs .toggle .$el ,
555
556
this .$refs .openIndicator .$el ,
556
- ... Array .from (this .$refs .openIndicator .$el .children ),
557
+ // the line below is a bit gross, but required to support IE11 without adding polyfills
558
+ ... Array .prototype .slice .call (this .$refs .openIndicator .$el .childNodes )
557
559
];
558
-
559
- const target = e .target ;
560
560
561
- if (toggleTargets .includes (target) || target .classList .contains (' vs__selected' )) {
561
+ if (toggleTargets .indexOf (target) > - 1 || target .classList .contains (' vs__selected' )) {
562
562
if (this .open ) {
563
563
this .searchEl .blur (); // dropdown will close on blur
564
564
} else {
You can’t perform that action at this time.
0 commit comments