js: fix when first input, beforeTextChange pass editing undefined (#562)
This commit is contained in:
4
doric-js/lib/src/widget/input.d.ts
vendored
4
doric-js/lib/src/widget/input.d.ts
vendored
@@ -40,10 +40,10 @@ export declare class Input extends View {
|
||||
* @returns: true means the replacement will take effect, otherwise does not
|
||||
*/
|
||||
beforeTextChange?: (change: {
|
||||
editing: string;
|
||||
editing?: string;
|
||||
start: number;
|
||||
length: number;
|
||||
replacement: string;
|
||||
replacement?: string;
|
||||
}) => boolean;
|
||||
padding?: {
|
||||
left?: number;
|
||||
|
Reference in New Issue
Block a user