diff --git a/package-lock.json b/package-lock.json index 7bcf101e..75970a3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "simple-keyboard", - "version": "2.20.7", + "version": "2.20.8", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -12524,7 +12524,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -12939,7 +12940,8 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -12995,6 +12997,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -13038,12 +13041,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, diff --git a/package.json b/package.json index 67a2ebb2..2f11d4d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-keyboard", - "version": "2.20.7", + "version": "2.20.8", "description": "On-screen Javascript Virtual Keyboard", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/src/lib/components/Keyboard.js b/src/lib/components/Keyboard.js index 4582cc1b..29afd47c 100644 --- a/src/lib/components/Keyboard.js +++ b/src/lib/components/Keyboard.js @@ -365,7 +365,7 @@ class SimpleKeyboard { * Set new option or modify existing ones after initialization. * @param {object} options The options to set */ - setOptions(options){ + setOptions(options) { options = options || {}; this.options = Object.assign(this.options, options); @@ -378,14 +378,14 @@ class SimpleKeyboard { * Rendering */ this.render(); - }; + } /** * Executing actions depending on changed options * @param {object} options The options to set */ - onSetOptions(options){ - if(options.inputName){ + onSetOptions(options) { + if (options.inputName) { /** * inputName changed. This requires a caretPosition reset */