foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
202 stars 10 forks source link

`ProseMirror` editor loses focus when a dropdown menu item is clicked #10899

Closed In3luki closed 1 month ago

In3luki commented 1 month ago

What happened?

This might be a side effect of #8212, I'm not sure if it was the same before that. Adding this.view.focus() at the end of ProseMirrorMenu#_onAction fixed it for me.

What ways of accessing Foundry can you encounter this issue in?

Reproduction Steps

Click any dropdown item and observe the editor losing focus.

What core version are you reporting this for?

Version 12 Build 322

Relevant log output

No response

Bug Checklist

aaclayton commented 1 month ago

Probably related to the dropdown change. Tagging @Fyorl to take a look.