4
0
mirror of https://github.com/hodgef/simple-keyboard.git synced 2025-04-20 08:48:34 +08:00

Make clearInput param optional. Fixes , Closes

This commit is contained in:
Francisco Hodge 2021-03-29 15:52:17 -04:00 committed by GitHub
parent fd1dd6a55b
commit 0ae4384ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -639,8 +639,7 @@ class SimpleKeyboard {
* Clear the keyboards input.
* @param {string} [inputName] optional - the internal input to select
*/
clearInput(inputName: string): void {
inputName = inputName || this.options.inputName;
clearInput(inputName = this.options.inputName): void {
this.input[inputName] = "";
/**