bulatb/quora-mention-editor

Editor shifts slightly when its link is edited directly through the answer box

Opened this issue · 0 comments

Problem

When bound to a link, the editor should only let the user change the link's text through its own text field. If the user tries to go around the editor and change it through the answer box directly, those changes should be blocked.

The changes are prevented, but the editor moves slightly when it happens. It seems to be an interaction with Quora's new Text/Link/None feature.

Repro

  1. Click a link and open the editor
  2. Click on the link again
  3. Move the mouse away from the link while keeping it focused
  4. Try to type some text
  5. Watch the editor jump