From 01f8acc34abef29c28868badc4bf3976aa117107 Mon Sep 17 00:00:00 2001 From: tihonove Date: Wed, 13 Sep 2017 17:17:50 +0500 Subject: [PATCH] Fix ie8 polyfill --- CHANGELOG.md | 3 +++ src/Behaviour/ValidationWrapper.jsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb36297..63d946b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +v0.2.10 +* [Fix] Mistype in HTMLElement polyfill + v0.2.7 * [Fix] Корректная работа валидация для `DatePicker` (#12) * [Fix] Исправлена проблема производительности для некоторых случаев (thx to @mr146) diff --git a/src/Behaviour/ValidationWrapper.jsx b/src/Behaviour/ValidationWrapper.jsx index 1dc7a06..bfaaaa7 100644 --- a/src/Behaviour/ValidationWrapper.jsx +++ b/src/Behaviour/ValidationWrapper.jsx @@ -6,7 +6,7 @@ import isEqual from "lodash.isequal"; import ReactUiDetection from "../ReactUiDetection"; import smoothScrollIntoView from "./smoothScrollIntoView"; -if (typeof HTMLElement !== "undefined") { +if (typeof HTMLElement === "undefined") { window.HTMLElement = window.Element; }