Minor 2.30.0 fixes

This commit is contained in:
Francisco Hodge 2020-08-07 18:09:06 -04:00
parent 07743c9ff8
commit 44cdc2bbb0
8 changed files with 4947 additions and 1546 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

6456
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@
"js"
],
"license": "MIT",
"dependencies": {
"devDependencies": {
"@babel/core": "7.9.0",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.11.5",

View File

@ -4,14 +4,25 @@
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Demo</title>
<meta name="theme-color" content="#000000" />
<title>simple-keyboard</title>
<style>
/**
* Disabling double-tap to zoom in iOS 10+
* as it interferes with simple-keyboard
*/
body,
html {
touch-action: manipulation;
}
</style>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root">Demo Page</div>
<div id="root"></div>
</body>
</html>

View File

@ -1,5 +1,3 @@
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';

View File

@ -973,10 +973,12 @@ class SimpleKeyboard {
);
}
} else {
console.log(
"Destroy: Instances remaining! Document listeners not removed",
window["SimpleKeyboardInstances"]
);
if (this.options.debug) {
console.log(
"Destroy: Instances remaining! Document listeners not removed",
window["SimpleKeyboardInstances"]
);
}
}
/**