mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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 (
|
||||
event.target instanceof HTMLButtonElement ||
|
||||
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
|
||||
// affect the behaviour of the button/link/textarea
|
||||
// Don't focus if the click was on a button/link/textarea/anchor as we
|
||||
// don't want to affect the behaviour of the button/link/textarea/anchor
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue