mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 23:21:05 +00:00
!30873 修改SelectDialog内容区走焦规则
Merge pull request !30873 from zhangwenbin00001/dialogPr
This commit is contained in:
commit
b7c3c0f3a1
@ -678,8 +678,10 @@ export class SelectDialog extends ViewPU {
|
||||
List.width('100%');
|
||||
List.clip(false);
|
||||
List.onFocus(() => {
|
||||
this.contentScroller.scrollEdge(Edge.Top);
|
||||
focusControl.requestFocus(String(FIRST_ITEM_INDEX));
|
||||
if (!this.contentScroller.isAtEnd()) {
|
||||
this.contentScroller.scrollEdge(Edge.Top);
|
||||
focusControl.requestFocus(String(FIRST_ITEM_INDEX));
|
||||
}
|
||||
});
|
||||
List.defaultFocus(this.buttons?.length == 0 ? true : false);
|
||||
if (!q14) {
|
||||
|
@ -344,8 +344,10 @@ export struct SelectDialog{
|
||||
})
|
||||
}.width('100%').clip(false)
|
||||
.onFocus(() => {
|
||||
this.contentScroller.scrollEdge(Edge.Top);
|
||||
focusControl.requestFocus(String(FIRST_ITEM_INDEX));
|
||||
if (!this.contentScroller.isAtEnd()) {
|
||||
this.contentScroller.scrollEdge(Edge.Top);
|
||||
focusControl.requestFocus(String(FIRST_ITEM_INDEX));
|
||||
}
|
||||
})
|
||||
.defaultFocus(this.buttons?.length == 0 ? true : false)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user