Bug - Modal - error on paste with bitwarden enabled
Describe the problem This is a bit of an edge case but when you have a modal with a password input on it on firefox with bitwarden enabled you get an error when you paste a password.
How do you reproduce the problem?
- Open https://codesandbox.io/p/sandbox/dreamy-dream-7983p4 with firefox and the bitwarden plugin installed
- Paste something into the password field
- See the error
Expected behavior It should not give an error
The error is in https://github.com/patternfly/patternfly-react/blob/24c732ea445cd4678cc8901aa22b0d2f80d648cb/packages/react-core/src/components/Modal/Modal.tsx#L155
as it tries to call setAttribute on the injected bitwarden component that is rendered on the password input.
and firefox is not allowing this giving a: "Permission denied to access property "setAttribute""
Is this issue blocking you? No, you can disable the bitwarden plugin and then it works
Screenshots
What is your environment?
- OS: fedora
- Browser firefox
- Version 124.0.1
What is your product and what release date are you targeting?
Any other information?
It only happens with Bitwarden Auto fill enabled. Can turn off under "Settings" > "Auto-fill" > "Show auto-fill menu on form fields" > "Off"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
@marcoleong that is a workaround would be nice if users can still use bitwarden on firefox
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been closed because it has not had activity since being marked as stale.