WBR tag breaks arrow navigation in contenteditable div (Safari)

100 Views Asked by At

When I try to move the caret with right arrow key on Safari, it gets stuck in the place where WBR tag is located.

It looks like a bug of Safari-browser, but are there any workarounds for this?

Code sample:

<div contenteditable="true">Div <wbr />with<wbr /> wbrs</div>

jsfiddle: https://jsfiddle.net/xkuqecy1/

0

There are 0 best solutions below