microsoft/roosterjs-react

Unexpected toolbar behavior when browser loses focus

Closed this issue · 1 comments

The toolbar is hidden whenever it loses focus, but is only deactivated when the roosterjs editor becomes an inactive element. If these events don't happen at the same time (such as if you move focus outside of the browser by using/opening another window), then you'll be able to activate a toolbar button by "clicking" on its location, even though the button isn't visible.

This is more of an edge case issue, but it can lead to some confusing behavior (i.e. accidentally indenting your text when you're trying to click back into the editor).

This repo is archived now. For react wrapper of roosterjs, please refer to roosterjs-react package in roosterjs repo. Thanks.