[No Jira Issue] modify "handleTopButtonClick" in HomePanel.jsx
This commit is contained in:
@@ -191,17 +191,13 @@ export default function HomePanel({ isOnTop }) {
|
||||
const containerId = sortedHomeLayoutInfo[0].shptmApphmDspyOptCd;
|
||||
const navigableEls = getContainerNavigableElements(containerId);
|
||||
const navigableIds = navigableEls.filter((el) => typeof el === "string");
|
||||
|
||||
let target = containerId;
|
||||
const target =
|
||||
containerId === TEMPLATE_CODE_CONF.TOP ? "banner0" : containerId;
|
||||
|
||||
if (navigableIds.length > 0) {
|
||||
setContainerLastFocusedElement(null, navigableIds);
|
||||
}
|
||||
|
||||
if (containerId === TEMPLATE_CODE_CONF.TOP) {
|
||||
target = "banner0";
|
||||
}
|
||||
|
||||
setContainerLastFocusedElement(null, [containerId]);
|
||||
setTimeout(() => Spotlight.focus(target));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user