Using display: inline-block
worked in my case. Solution was found here: Cursor appears inside inline node when at end of preceding text node - #2 by marijn
Using display: inline-block
worked in my case. Solution was found here: Cursor appears inside inline node when at end of preceding text node - #2 by marijn