FIX: Improve sidebar invite link highlight persisting, link tabbing and activation behavior (#30734)

This commit is contained in:
Ella E. 2025-01-13 08:21:06 -07:00 committed by GitHub
parent 5a565105c9
commit 8535a8595c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,8 +242,10 @@ export default class CreateInvite extends Component {
} }
@action @action
showAdvancedMode() { showAdvancedMode(event) {
this.displayAdvancedOptions = true; this.displayAdvancedOptions = true;
event.preventDefault();
event.stopPropagation();
} }
@action @action
@ -326,7 +328,9 @@ export default class CreateInvite extends Component {
<a <a
class="edit-link-options" class="edit-link-options"
role="button" role="button"
tabindex="0"
{{on "click" this.showAdvancedMode}} {{on "click" this.showAdvancedMode}}
{{on "keydown" this.showAdvancedMode}}
>{{i18n "user.invited.invite.edit_link_options"}}</a> >{{i18n "user.invited.invite.edit_link_options"}}</a>
</p> </p>
{{else}} {{else}}
@ -463,6 +467,7 @@ export default class CreateInvite extends Component {
@action={{this.createLink}} @action={{this.createLink}}
@disabled={{this.saving}} @disabled={{this.saving}}
class="btn-primary save-invite" class="btn-primary save-invite"
autofocus="true"
/> />
{{else}} {{else}}
<DButton <DButton
@ -484,6 +489,7 @@ export default class CreateInvite extends Component {
}} }}
@action={{this.saveInviteAndSendEmail}} @action={{this.saveInviteAndSendEmail}}
@disabled={{this.saving}} @disabled={{this.saving}}
autofocus="true"
class="btn-primary save-invite-and-send-email" class="btn-primary save-invite-and-send-email"
/> />
{{/if}} {{/if}}