From 8535a8595c36d3e4df41fdcc8a4d5abc48739dcf Mon Sep 17 00:00:00 2001
From: "Ella E."
Date: Mon, 13 Jan 2025 08:21:06 -0700
Subject: [PATCH] FIX: Improve sidebar invite link highlight persisting, link
tabbing and activation behavior (#30734)
---
.../discourse/app/components/modal/create-invite.gjs | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/app/assets/javascripts/discourse/app/components/modal/create-invite.gjs b/app/assets/javascripts/discourse/app/components/modal/create-invite.gjs
index bbf970c33aa..afa2afcfddd 100644
--- a/app/assets/javascripts/discourse/app/components/modal/create-invite.gjs
+++ b/app/assets/javascripts/discourse/app/components/modal/create-invite.gjs
@@ -242,8 +242,10 @@ export default class CreateInvite extends Component {
}
@action
- showAdvancedMode() {
+ showAdvancedMode(event) {
this.displayAdvancedOptions = true;
+ event.preventDefault();
+ event.stopPropagation();
}
@action
@@ -326,7 +328,9 @@ export default class CreateInvite extends Component {
{{i18n "user.invited.invite.edit_link_options"}}
{{else}}
@@ -463,6 +467,7 @@ export default class CreateInvite extends Component {
@action={{this.createLink}}
@disabled={{this.saving}}
class="btn-primary save-invite"
+ autofocus="true"
/>
{{else}}
{{/if}}