facebookarchive/draft-js

Down arrow stops working after inserting link in Firefox

Open

#985 建立於 2017年1月31日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (22,554 star) (2,646 fork)batch import
bugfirefoxhelp wanted

描述

Do you want to request a feature or report a bug? Bug

What is the current behavior? When inserting a link in Firefox, the down arrow key stops working temporarily until a new selection has been made. Up, right and left arrow keys work as expected.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. https://jsfiddle.net/m6z0xn4r/116/

  1. Insert a few blank lines
  2. Add some text to the first line, and make it a link.
  3. Immediately after clicking 'Add Link', click the down arrow.

What is the expected behavior? Cursor to move down to the next line.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? I'm able to reproduce this issue in Draft.JS 0.10.0 and 0.9.1 in Firefox (53.0). I've tested on Mac OS 10.12.3.

貢獻者指南

Down arrow stops working after inserting link in Firefox · facebookarchive/draft-js#985 | Good First Issue