Skip to content

Enter in the empty link password field removes the password although Confirm is disabled #3876

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Pressing Enter in the empty "Edit password" field of a link removes the link password, although Confirm is disabled. Cause: SetLinkPasswordModal.vue emits confirm on Enter, and packages/web-runtime/src/components/ModalWrapper.vue (onModalConfirm) ignores modal.confirmDisabled.

Reproduction Steps

  1. On an instance where link passwords aren't enforced (or as admin), open a password-protected link's ⋮ menu > Edit password.
  2. Leave the field empty and press Enter.

Expected Outcome

Nothing happens, the same as with the disabled Confirm button.

Actual Outcome

The link is updated with an empty password, so the password is removed, with a "link updated" success message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions