js: fix when first input, onTextChange or onSubmitEditing pass editing undefined
This commit is contained in:
parent
2cfab62e11
commit
c60754c53d
4
doric-js/index.d.ts
vendored
4
doric-js/index.d.ts
vendored
@ -1255,13 +1255,13 @@ declare module "doric" {
|
|||||||
hintTextColor?: Color;
|
hintTextColor?: Color;
|
||||||
multiline?: boolean;
|
multiline?: boolean;
|
||||||
textAlignment?: Gravity;
|
textAlignment?: Gravity;
|
||||||
onTextChange?: (text: string) => void;
|
onTextChange?: (text?: string) => void;
|
||||||
onFocusChange?: (focused: boolean) => void;
|
onFocusChange?: (focused: boolean) => void;
|
||||||
maxLength?: number;
|
maxLength?: number;
|
||||||
password?: boolean;
|
password?: boolean;
|
||||||
editable?: boolean;
|
editable?: boolean;
|
||||||
returnKeyType?: ReturnKeyType;
|
returnKeyType?: ReturnKeyType;
|
||||||
onSubmitEditing?: (text: string) => void;
|
onSubmitEditing?: (text?: string) => void;
|
||||||
enableHorizontalScrollBar?: boolean;
|
enableHorizontalScrollBar?: boolean;
|
||||||
enableVerticalScrollBar?: boolean;
|
enableVerticalScrollBar?: boolean;
|
||||||
/**
|
/**
|
||||||
|
4
doric-js/lib/src/widget/input.d.ts
vendored
4
doric-js/lib/src/widget/input.d.ts
vendored
@ -21,13 +21,13 @@ export declare class Input extends View {
|
|||||||
hintTextColor?: Color;
|
hintTextColor?: Color;
|
||||||
multiline?: boolean;
|
multiline?: boolean;
|
||||||
textAlignment?: Gravity;
|
textAlignment?: Gravity;
|
||||||
onTextChange?: (text: string) => void;
|
onTextChange?: (text?: string) => void;
|
||||||
onFocusChange?: (focused: boolean) => void;
|
onFocusChange?: (focused: boolean) => void;
|
||||||
maxLength?: number;
|
maxLength?: number;
|
||||||
password?: boolean;
|
password?: boolean;
|
||||||
editable?: boolean;
|
editable?: boolean;
|
||||||
returnKeyType?: ReturnKeyType;
|
returnKeyType?: ReturnKeyType;
|
||||||
onSubmitEditing?: (text: string) => void;
|
onSubmitEditing?: (text?: string) => void;
|
||||||
enableHorizontalScrollBar?: boolean;
|
enableHorizontalScrollBar?: boolean;
|
||||||
enableVerticalScrollBar?: boolean;
|
enableVerticalScrollBar?: boolean;
|
||||||
/**
|
/**
|
||||||
|
@ -61,7 +61,7 @@ export class Input extends View {
|
|||||||
textAlignment?: Gravity
|
textAlignment?: Gravity
|
||||||
|
|
||||||
@Property
|
@Property
|
||||||
onTextChange?: (text: string) => void
|
onTextChange?: (text?: string) => void
|
||||||
|
|
||||||
@Property
|
@Property
|
||||||
onFocusChange?: (focused: boolean) => void
|
onFocusChange?: (focused: boolean) => void
|
||||||
@ -79,7 +79,7 @@ export class Input extends View {
|
|||||||
returnKeyType?: ReturnKeyType
|
returnKeyType?: ReturnKeyType
|
||||||
|
|
||||||
@Property
|
@Property
|
||||||
onSubmitEditing?: (text: string) => void
|
onSubmitEditing?: (text?: string) => void
|
||||||
|
|
||||||
@Property
|
@Property
|
||||||
enableHorizontalScrollBar?: boolean
|
enableHorizontalScrollBar?: boolean
|
||||||
|
Reference in New Issue
Block a user