aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@selz.com>2016-11-27 20:09:49 +1100
committerGitHub <noreply@github.com>2016-11-27 20:09:49 +1100
commit663c1fb62747d8b3ae2c6c2073b52ff7e9c420a4 (patch)
tree5059922a5ca21634dedfeb6251ea0fd1cc9c93d7 /src/js/plyr.js
parent4ca3f030cc36e4c92be00bd855da0353e6312cde (diff)
parenta7969b8e9e2201054ea55d3c62d6c0c165f6eb9d (diff)
downloadplyr-663c1fb62747d8b3ae2c6c2073b52ff7e9c420a4.tar.lz
plyr-663c1fb62747d8b3ae2c6c2073b52ff7e9c420a4.tar.xz
plyr-663c1fb62747d8b3ae2c6c2073b52ff7e9c420a4.zip
Merge pull request #427 from amowu/patch-2
Fix cannot scroll after destroyed
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index ec3f4029..ddc20630 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -3664,6 +3664,9 @@
// Replace the container with the original element provided
plyr.container.parentNode.replaceChild(original, plyr.container);
+ // unbind escape key
+ document.body.style.overflow = '';
+
// Event
_triggerEvent(original, 'destroyed', true);
}