Skip to content

Commit 8f704ca

Browse files
author
qiuguohua
committed
Fixing the issue on the HarmonyOS Next platform where the editbox continues to be affected after closing the input keyboard.
1 parent 223167c commit 8f704ca

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

templates/harmonyos-next/entry/src/main/ets/components/EditBoxDialog.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export struct EditBoxDialog {
7676
})
7777
}.padding({ left: 8, right: 8, top: 8, bottom: 8 })
7878
.backgroundColor(Color.Gray)
79-
.offset({ x : 0, y : 15 })
79+
.offset({ x : 0, y : 16 })
8080
}
8181
.width('100%')
8282

templates/harmonyos-next/entry/src/main/ets/pages/index.ets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ struct Index {
6363
showInfo: this.showInfo,
6464
workPort: this.workPort,
6565
}),
66+
cancel: (): void => {
67+
this.workPort.postMessage('onComplete', this.showInfo.defaultMessage);
68+
},
6669
autoCancel: true,
6770
alignment: DialogAlignment.Bottom,
6871
customStyle: true,

0 commit comments

Comments
 (0)