Make clearInput param optional. Fixes #959, Closes #960

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

View File

@ -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] = "";
/**