Safari not setting focus on wrapper / scroller mouse click

I have a simple editor setup like so:


which causes the editor to be full height in the container I place it. However, on safari the editor doesn’t focus when I click on the empty area (which doesn’t contain a cm-line). On chrome, it works as expected.

Let me know if I need to provide more information.

It seems that Safari handles heights inside flex children differently from the other browsers. This patch should help with that (or you could just set height: 100% on .cm-scroller as a workaround).