mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Skip ReviewPanelEntry focus event if target is anchor element (#20928)
GitOrigin-RevId: e6ad0ca7c03de2ef176b6328c27dd0afa10bd102
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user