Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 678a99d

Browse files
authored
fix:webview自定义组件销毁时,焦点转移到根容器 (#237)
1 parent cfc1792 commit 678a99d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

harmony/rn_webview/src/main/ets/RNCWebView.ets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export struct RNCWebView {
137137
}
138138

139139
aboutToDisappear() {
140+
this.getUIContext().getFocusController().clearFocus()
140141
this.cleanupCommandCallback?.()
141142
this.unregisterDescriptorChangesListener?.()
142143
this.cleanUpCallbacks.forEach(cb => cb())

0 commit comments

Comments
 (0)