Skip to content

Commit

Permalink
Replacing .includes with .indexOf for IE11, fixes #2701
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Jun 27, 2018
1 parent e855b8d commit a0adb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function handleInputChange(
// ==============================

function isDocumentElement(el: Element) {
return [document.documentElement, document.body, window].includes(el);
return [document.documentElement, document.body, window].indexOf(el) > -1;
}

// Normalized Scroll Top
Expand Down

0 comments on commit a0adb34

Please sign in to comment.