lg account focus test
This commit is contained in:
@@ -336,14 +336,14 @@ export const launchMembershipApp = () => (dispatch, getState) => {
|
||||
}
|
||||
|
||||
const lastFocusedElement = Spotlight.getCurrent();
|
||||
const SpotlightId = lastFocusedElement.getAttribute("data-spotlight-id");
|
||||
const spotlightId = lastFocusedElement.getAttribute("data-spotlight-id");
|
||||
|
||||
lunaSend.launchMembershipApp(returnPath, {
|
||||
onSuccess: (res) => {
|
||||
console.log("membership launch success: ", res);
|
||||
setTimeout(() => {
|
||||
if (lastFocusedElement && document.contains(lastFocusedElement)) {
|
||||
Spotlight.focus(SpotlightId);
|
||||
Spotlight.focus(spotlightId);
|
||||
}
|
||||
}, 100);
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@ import QuickMenuItem from "../QuickMenu/QuickMenuItem/QuickMenuItem";
|
||||
import css from "./QuickMenu.module.less";
|
||||
|
||||
const Container = SpotlightContainerDecorator(
|
||||
{ leaveFor: { right: "" }, enterTo: "last-focused" },
|
||||
{ leaveFor: { right: "" }, enterTo: "last-focused", preserveId: true },
|
||||
"nav"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user