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

Invalid Calling Object in nodesToArray  #2109

@mdelgadov

Description

@mdelgadov

In IE 11 when using md-select, the directive works properly when using the mouse... It opens, moves, etc.

But when using the keyboard, specifically the arrow down key, the following exception happens:

The function:

// Annoying method to copy nodes to an array, thanks to IE
function nodesToArray(nodes) {
var results = [];
for (var i = 0; i < nodes.length; ++i) {
results.push(nodes.item(i));
}
return results;
}
})();
In the instruction nodes.length throws the unhandled error:
Unhandled exception at line 7882, column 19 in http://localhost:14493/scripts/angular-material.js

0x8000ffff - JavaScript runtime error: Invalid calling object

Thanks in advance...

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions