Skip to content

"Uncaught TypeError: t.getModifierState is not a function" JS error in Template editor #18648

@Piedone

Description

@Piedone

Describe the bug

You can get the following JS error in the Template editor when adding something to the Name or Content field but only by inserting an auto-complete value:

editor.main.js:113 Uncaught TypeError: t.getModifierState is not a function
    at new a (editor.main.js:113:7245)
    at HTMLBodyElement.<anonymous> (editor.main.js:113:79285)
a	@	editor.main.js:113
(anonymous)	@	editor.main.js:113

Orchard Core version

Latest main (bf11088)

To Reproduce

  1. Click Add Template under the Templates admin.
  2. Add something to the Name or Content field but do this by inserting an auto-complete value. Adding something anew doesn't produce the issue.
  3. Observe the error right after the value is added.

Note that this is under Chrome.

This doesn't seem to cause any other issues.

Expected behavior

No exception.

Logs and screenshots

I'm adding a video recording of this for clarity:

2025-12-19_21h00_15.mp4

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions