Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit c183e9b

Browse files
fix(select): IE down arrow key error resolved
Fixes #2109.
1 parent fb7b9b3 commit c183e9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/util/util.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ angular.module('material.core')
4242

4343
// Annoying method to copy nodes to an array, thanks to IE
4444
nodesToArray: function (nodes) {
45+
nodes = nodes || [ ];
46+
4547
var results = [];
4648
for (var i = 0; i < nodes.length; ++i) {
4749
results.push(nodes.item(i));

0 commit comments

Comments
 (0)