Uncaught TypeError: e.getModifierState is not a function #12537

Closed
opened 2025-11-02 10:13:14 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @yp05327 on GitHub (Feb 26, 2024).

Description

image
I think this is not caused by browser extensions, as I have closed all of them that I could.

Reproduce:

  1. Open a repo, and click add new file.
  2. At the input box of filename, select LICENSE from the list:
    image

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build

Database

None

Originally created by @yp05327 on GitHub (Feb 26, 2024). ### Description ![image](https://github.com/go-gitea/gitea/assets/18380374/827cbd39-a988-4188-8ec3-0b2dc0aca64a) I think this is not caused by browser extensions, as I have closed all of them that I could. Reproduce: 1. Open a repo, and click add new file. 2. At the input box of filename, select `LICENSE` from the list: ![image](https://github.com/go-gitea/gitea/assets/18380374/709e3266-bc96-4ebb-9306-49b1cd54f5f7) ### Gitea Version latest ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? build ### Database None
GiteaMirror added the type/bugtype/upstream labels 2025-11-02 10:13:14 -06:00
Author
Owner

@lng2020 commented on GitHub (Feb 26, 2024):

I think it's https://github.com/microsoft/monaco-editor/issues/4213 . As long as using Chrome auto-fill in this page, the error occurs.

@lng2020 commented on GitHub (Feb 26, 2024): I think it's https://github.com/microsoft/monaco-editor/issues/4213 . As long as using Chrome auto-fill in this page, the error occurs.
Author
Owner

@yp05327 commented on GitHub (Feb 26, 2024):

I think https://github.com/microsoft/monaco-editor/issues/4325 is more related and they are trying to fix it.

@yp05327 commented on GitHub (Feb 26, 2024): I think https://github.com/microsoft/monaco-editor/issues/4325 is more related ~~and they are trying to fix it~~.
Author
Owner

@silverwind commented on GitHub (Feb 26, 2024):

We could downgrade monaco if there is no workaround.

@silverwind commented on GitHub (Feb 26, 2024): We could downgrade monaco if there is no workaround.
Author
Owner

@Attacktive commented on GitHub (Mar 6, 2024):

I downgraded to 0.44.0 and am happy with it.

@Attacktive commented on GitHub (Mar 6, 2024): I downgraded to `0.44.0` and am happy with it.
Author
Owner

@silverwind commented on GitHub (Mar 9, 2024):

Bug seems to not affect Firefox at least.

@silverwind commented on GitHub (Mar 9, 2024): Bug seems to not affect Firefox at least.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12537