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