Skip to content

Conversation

@leekelleher
Copy link
Member

Description

Fixes #20897

Adds a umbIgnorePasswordManagers Lit directive, so that password manager / browser extensions can ignore the RTE contents.

The idea of this Lit directive is to group the ignore attributes for each of the major password manager browser extensions into a single directive, similar to how it was in v8+(see #4153). Initially we have ignore attributes for 1Password, Bitwarden, Dashlane and LastPass.

so that password manager / browser extensions can ignore the RTE contents.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a Lit directive to prevent password manager browser extensions from interfering with the Tiptap Rich Text Editor (RTE). The directive applies ignore attributes for major password managers (1Password, Bitwarden, Dashlane, and LastPass) to the RTE editor element.

Key changes:

  • Creates a new umbIgnorePasswordManagers Lit directive that applies password manager ignore attributes
  • Applies the directive to the Tiptap RTE editor div element
  • Exports the new directive from the lit-element directives index

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
ignore-password-managers.lit-directive.ts Implements the new Lit directive with attributes for 1Password, Bitwarden, Dashlane, and LastPass
index.ts Exports the new directive and alphabetizes the export list
input-tiptap.element.ts Imports and applies the directive to the RTE editor element

@iOvergaard iOvergaard added the preview/backoffice Pull requests that can be previewed in a static version of the Backoffice label Nov 20, 2025
- Adds JSDocs
- changed to use `Directive`
- constructor checks if the directive is being used on an element
- return `noChange` from update
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-ground-017b08103-20905.westeurope.6.azurestaticapps.net

@madsrasmussen
Copy link
Contributor

I am closing this PR because the attributes need to go directly on the native input field, which need to be handled in the UI Library. See additional testing notes here: #20897 (comment)

@madsrasmussen madsrasmussen removed type/bug area/frontend preview/backoffice Pull requests that can be previewed in a static version of the Backoffice labels Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v16/v17 should add data attributes for major password managers to not interfere with the DOM

4 participants