[DetailPanel] descriptionPopUp onClose focus
This commit is contained in:
@@ -47,15 +47,21 @@ export default function IndicatorOptions({
|
||||
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const handleSMSonClose = useCallback(() => {
|
||||
const spotlightId =
|
||||
tabLabel[0] === $L("DESCRIPTION")
|
||||
? "description_Btn"
|
||||
: "return_Exchanges_Btn";
|
||||
const handleSMSonClose = useCallback(
|
||||
(e) => {
|
||||
const spotlightId =
|
||||
tabLabel[0] === $L("DESCRIPTION")
|
||||
? "description_Btn"
|
||||
: "return_Exchanges_Btn";
|
||||
|
||||
dispatch(setHidePopup());
|
||||
Spotlight.focus(spotlightId);
|
||||
}, [dispatch, tabLabel]);
|
||||
dispatch(setHidePopup());
|
||||
|
||||
setTimeout(() => {
|
||||
Spotlight.focus(spotlightId);
|
||||
});
|
||||
},
|
||||
[dispatch, tabLabel]
|
||||
);
|
||||
|
||||
const handleSMSClick = useCallback(() => {
|
||||
dispatch(setShowPopup(Config.ACTIVE_POPUP.smsPopup));
|
||||
|
||||
Reference in New Issue
Block a user