mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 14:42:18 +00:00
Skip ReviewPanelEntry focus event if target is anchor element (#20928)
GitOrigin-RevId: e6ad0ca7c03de2ef176b6328c27dd0afa10bd102
This commit is contained in:
parent
def2f7f4fd
commit
42a199043a
1 changed files with 4 additions and 3 deletions
|
@ -48,10 +48,11 @@ export const ReviewPanelEntry: FC<{
|
||||||
if (
|
if (
|
||||||
event.target instanceof HTMLButtonElement ||
|
event.target instanceof HTMLButtonElement ||
|
||||||
event.target instanceof HTMLLinkElement ||
|
event.target instanceof HTMLLinkElement ||
|
||||||
event.target instanceof HTMLTextAreaElement
|
event.target instanceof HTMLTextAreaElement ||
|
||||||
|
event.target instanceof HTMLAnchorElement
|
||||||
) {
|
) {
|
||||||
// Don't focus if the click was on a button/link/textarea as we don't want
|
// Don't focus if the click was on a button/link/textarea/anchor as we
|
||||||
// affect the behaviour of the button/link/textarea
|
// don't want to affect the behaviour of the button/link/textarea/anchor
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue