js: fix when first input, beforeTextChange pass editing undefined (#562)

This commit is contained in:
osborn
2022-12-13 17:32:20 +08:00
committed by GitHub
parent 0668e0fe86
commit 2cfab62e11
3 changed files with 6 additions and 6 deletions

View File

@@ -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;