Build update

This commit is contained in:
Francisco Hodge
2021-05-16 18:07:25 +00:00
parent 73b96ea181
commit 9d3a9bc79f
3 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
/*!
*
* simple-keyboard v3.1.0
* simple-keyboard v3.1.1
* https://github.com/hodgef/simple-keyboard
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
+2 -2
View File
File diff suppressed because one or more lines are too long
+7 -6
View File
@@ -53,9 +53,11 @@ class SimpleKeyboard {
constructor(...params: KeyboardParams) {
if (typeof window === "undefined") return;
const { keyboardDOMClass, keyboardDOM, options = {} } = this.handleParams(
params
);
const {
keyboardDOMClass,
keyboardDOM,
options = {},
} = this.handleParams(params);
/**
* Initializing Utilities
@@ -472,9 +474,8 @@ class SimpleKeyboard {
* Check if this new input has candidates (suggested words)
*/
if (e?.target && this.options.enableLayoutCandidates) {
const { candidateKey, candidateValue } = this.getInputCandidates(
updatedInput
);
const { candidateKey, candidateValue } =
this.getInputCandidates(updatedInput);
if (candidateKey && candidateValue) {
this.showCandidatesBox(