mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
38eda7fa61
Safari keeps the heading actions widget at the end of headings to avoid selection issues, but the widget was still using side metadata suited to the leading placement. With Chinese IME composition at the end of a heading, same-position insertion could interact with the contentEditable=false widget and leave the editor selection stuck. After that, Backspace stopped working until the page was refreshed. Use positive side metadata for the Safari trailing widget so composed text stays before it, allow relaxed selection around the widget, and add a narrow Safari-only ArrowLeft fallback for the heading-end boundary. Chinese IME has been manually verified. Other composition-based IMEs may follow a similar path, but are not claimed as verified here.