I've spent some time debugging this. I originally assumed it would be Froala related, but it's actually caused by some extra code that we've added. Specifically, it relates to the stronger system of maintaining your selection that we have added.
At this point, any workaround would involve some disadvantages that I think are worse than this issue (meaning that in some scenarios, the buttons insert content in an incorrect location), given that you can click elsewhere to resolve the issue (or press escape, for example, on desktop), so I don't think any change will be made here.