Fix: When I visit a link to a status, the user's avatar is focused
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
2941c121e9
commit
a3afeb6c54
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ class DetailedStatus extends ImmutablePureComponent<IDetailedStatus, IDetailedSt
|
|||
|
||||
return (
|
||||
<div style={outerStyle}>
|
||||
<div ref={this.setRef} className={classNames('detailed-status', { compact })}>
|
||||
<div ref={this.setRef} className={classNames('detailed-status', { compact })} tabIndex={-1}>
|
||||
<div className='mb-4'>
|
||||
<AccountContainer
|
||||
key={account.id}
|
||||
|
|
|
@ -644,7 +644,7 @@ class Status extends ImmutablePureComponent<IStatus, IStatusState> {
|
|||
offset: -80,
|
||||
});
|
||||
|
||||
setImmediate(() => this.status?.querySelector('a')?.focus());
|
||||
setImmediate(() => this.status?.querySelector<HTMLDivElement>('.detailed-status')?.focus());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue