mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-02-17 03:11:24 +00:00
codecheck
Signed-off-by: zhangzuhui <zhangzuhui1@h-partners.com>
This commit is contained in:
parent
67a0c74010
commit
705ba01699
@ -555,7 +555,7 @@ class CollapsibleMenuSection extends ViewPU {
|
||||
hilog.error(0x3900, 'Ace', `Faild to decideFontScale,cause, code: ${q5}, message: ${r5}`);
|
||||
}
|
||||
this.menuItems.forEach((n5, o5) => {
|
||||
if (n5.isEnabled && this.firstFocusableIndex == -1 &&
|
||||
if (n5.isEnabled && this.firstFocusableIndex === -1 &&
|
||||
o5 > CollapsibleMenuSection.maxCountOfVisibleItems - 2) {
|
||||
this.firstFocusableIndex = this.index * 1000 + o5 + 1;
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ struct CollapsibleMenuSection {
|
||||
hilog.error(0x3900, 'Ace', `Faild to decideFontScale,cause, code: ${code}, message: ${message}`);
|
||||
}
|
||||
this.menuItems.forEach((item, index) => {
|
||||
if (item.isEnabled && this.firstFocusableIndex == -1 &&
|
||||
if (item.isEnabled && this.firstFocusableIndex === -1 &&
|
||||
index > CollapsibleMenuSection.maxCountOfVisibleItems - 2) {
|
||||
this.firstFocusableIndex = this.index * 1000 + index + 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user