Skip to content

Commit 1d7fe43

Browse files
committed
check for parentNode.classList before inspecting it
1 parent 424b78f commit 1d7fe43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inst/rmd/ioslides/ioslides-13.5.1/js/slide-deck.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ SlideDeck.prototype.onBodyKeyDown_ = function(e) {
173173
// handling keys only when the text input is active or when the up or down
174174
// arrow key is pressed (which is used to open the list from the keyboard)
175175
var parentNode = e.target.parentNode || e.target; // handle no parent
176-
if (parentNode.classList.contains('selectize-input')) {
176+
if (parentNode.classList && parentNode.classList.contains('selectize-input')) {
177177
if (parentNode.classList.contains('input-active') || // text input is active
178178
(e.keyCode == 38) || (e.keyCode == 40)) // up or down arrow
179179
return;

0 commit comments

Comments
 (0)