Cannot use Undo when there is an embedded view on the form

Recently I noticed that it’s not possible to undo changes in richtext fields when using embedded views.

I’ve done some testing, and whenever I remove the embedded view, undo always starts working as expected.

Am I missing something here?