1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-15 16:05:03 +00:00

Fix EventListener type errors in inline menu list handlers (#18943)

Changed event parameter type from MouseEvent to Event in handleFillCipherClickEvent and handleViewCipherClickEvent to match the EventListener interface expected by useEventHandlersMemo.

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Will Martin
2026-02-12 09:50:31 -05:00
committed by GitHub
parent 9d69b15798
commit ad8bde057f

View File

@@ -1012,7 +1012,7 @@ export class AutofillInlineMenuList extends AutofillInlineMenuPageElement {
private handleFillCipherClickEvent = (cipher: InlineMenuCipherData) => {
const usePasskey = !!cipher.login?.passkey;
return this.useEventHandlersMemo(
(event: MouseEvent) => {
(event: Event) => {
/**
* Reject synthetic events (not originating from the user agent)
*/
@@ -1140,7 +1140,7 @@ export class AutofillInlineMenuList extends AutofillInlineMenuPageElement {
* @param cipher - The cipher to view.
*/
private handleViewCipherClickEvent = (cipher: InlineMenuCipherData) => {
return this.useEventHandlersMemo((event: MouseEvent) => {
return this.useEventHandlersMemo((event: Event) => {
/**
* Reject synthetic events (not originating from the user agent)
*/