[Accessibility] Navigation focus handling polish (#39358)
This commit is contained in:
1 parent
c6e2e2255c
commit
2994e8543d
27 files changed
+119
-48
No files matched your search
@@ -93,7 +93,7 @@ const messages = defineMessages({
|
||||
|
||||
export const ensureComposeIsVisible = (getState) => {
|
||||
if (!getState().getIn(['compose', 'mounted'])) {
|
||||
browserHistory.push('/publish');
|
||||
browserHistory.push('/publish', { focusTarget: false });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -292,7 +292,10 @@ export function submitCompose(successCallback) {
|
||||
message: statusId === null ? messages.published : messages.saved,
|
||||
action: messages.open,
|
||||
dismissAfter: 10000,
|
||||
onClick: () => browserHistory.push(`/@${response.data.account.username}/${response.data.id}`),
|
||||
onClick: () => browserHistory.push(
|
||||
`/@${response.data.account.username}/${response.data.id}`,
|
||||
{ focusTarget: 'detailed-status' }
|
||||
),
|
||||
}));
|
||||
}).catch(function (error) {
|
||||
dispatch(submitComposeFail(error));
|
||||
|
||||
Reference in new issue
Block a user