summaryrefslogtreecommitdiff
path: root/web/source/settings/views/user
diff options
context:
space:
mode:
Diffstat (limited to 'web/source/settings/views/user')
-rw-r--r--web/source/settings/views/user/applications/search.tsx10
-rw-r--r--web/source/settings/views/user/interactions/search.tsx10
2 files changed, 16 insertions, 4 deletions
diff --git a/web/source/settings/views/user/applications/search.tsx b/web/source/settings/views/user/applications/search.tsx
index afbb0d326..02f8ed5c6 100644
--- a/web/source/settings/views/user/applications/search.tsx
+++ b/web/source/settings/views/user/applications/search.tsx
@@ -139,7 +139,8 @@ function ApplicationListEntry({ app, linkTo, backLocation }: ApplicationListEntr
const created = useCreated(app);
const redirectURIs = useRedirectURIs(app);
- const onClick = () => {
+ const onClick = (e) => {
+ e.preventDefault();
// When clicking on an app, direct
// to the detail view for that app.
setLocation(linkTo, {
@@ -156,7 +157,12 @@ function ApplicationListEntry({ app, linkTo, backLocation }: ApplicationListEntr
aria-label={`${app.name}`}
title={`${app.name}`}
onClick={onClick}
- onKeyDown={e => e.key === "Enter" && onClick()}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") {
+ e.preventDefault();
+ onClick(e);
+ }
+ }}
role="link"
tabIndex={0}
>
diff --git a/web/source/settings/views/user/interactions/search.tsx b/web/source/settings/views/user/interactions/search.tsx
index 5d2da7563..2f5f41d7d 100644
--- a/web/source/settings/views/user/interactions/search.tsx
+++ b/web/source/settings/views/user/interactions/search.tsx
@@ -174,7 +174,8 @@ function ReqsListEntry({ req, linkTo, backLocation }: ReqsListEntryProps) {
const ourContent = useContent(req.status);
const theirContent = useContent(req.reply);
- const onClick = () => {
+ const onClick = (e) => {
+ e.preventDefault();
// When clicking on a request, direct
// to the detail view for that request.
setLocation(linkTo, {
@@ -191,7 +192,12 @@ function ReqsListEntry({ req, linkTo, backLocation }: ReqsListEntryProps) {
aria-label={label}
title={label}
onClick={onClick}
- onKeyDown={e => e.key === "Enter" && onClick()}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") {
+ e.preventDefault();
+ onClick(e);
+ }
+ }}
role="link"
tabIndex={0}
>