mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 01:43:14 +08:00
fix(android): boolean keyboardType should not set inputType (#9795)
This commit is contained in:

committed by
Nathan Walker

parent
a4725ed8e5
commit
9e6371fdaf
@ -30,7 +30,7 @@ export class TextField extends TextFieldBase {
|
||||
|
||||
// Check for a passed in Number value
|
||||
const value = +this.keyboardType;
|
||||
if (!isNaN(value)) {
|
||||
if (typeof this.keyboardType !== 'boolean' && !isNaN(value)) {
|
||||
this._setInputType(value);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user