This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes some drag-n-drop problems (#1599)
Summary: **Summary** Fixes issue #1383. Fixes problem which is: onDrop breaks onSelect/onChange events. Fixes issue #1454 (partial). Fixes problem which is: after first internal drop dragged text will not be moved to target position, but copied. The solution is to set `editor._internalDrag` to false not during onDragOver events, but after end of drag-n-drop. **Test Plan** Attached reproducable videos (on Chrome for Linux) Issue #1383 before and after: ![1383-before](https://user-images.githubusercontent.com/3238637/46585340-68ec4100-ca78-11e8-9c2f-c98e7cb381ff.gif) ![1383-after](https://user-images.githubusercontent.com/3238637/46585344-6c7fc800-ca78-11e8-9c2e-fdac5594d1d0.gif) Issue #1454 before and after: ![1454-before](https://user-images.githubusercontent.com/3238637/46585364-9e912a00-ca78-11e8-9c17-5dfcec5a2e16.gif) ![1454-after](https://user-images.githubusercontent.com/3238637/46585361-9a650c80-ca78-11e8-8b7f-dac6c6af4b23.gif) Pull Request resolved: #1599 Differential Revision: D10236073 fbshipit-source-id: 3b7b816630f3b5b15931cb53782a1d5b9e9d5121
- Loading branch information