mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +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
|
// Check for a passed in Number value
|
||||||
const value = +this.keyboardType;
|
const value = +this.keyboardType;
|
||||||
if (!isNaN(value)) {
|
if (typeof this.keyboardType !== 'boolean' && !isNaN(value)) {
|
||||||
this._setInputType(value);
|
this._setInputType(value);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user