mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
fix(android): KeyboardType now respects numbers (#9240)
This commit is contained in:

committed by
GitHub

parent
c04e1b59e5
commit
f08fcb17b4
@ -27,6 +27,13 @@ export class TextField extends TextFieldBase {
|
||||
setSecureAndKeyboardType(): void {
|
||||
let inputType: number;
|
||||
|
||||
// Check for a passed in Number value
|
||||
const value = +this.keyboardType;
|
||||
if (!isNaN(value)) {
|
||||
this._setInputType(value);
|
||||
return;
|
||||
}
|
||||
|
||||
// Password variations are supported only for Text and Number classes.
|
||||
if (this.secure) {
|
||||
if (this.keyboardType === 'number') {
|
||||
|
Reference in New Issue
Block a user