mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
778abb067f
When uploading an image, we change the uploading placeholder several times. Every time, we correct the position of the cursor after replacing. But we schedule repositioning of cursor to the afterRender queue in Ember Run Loop. As a result, sometimes we replace the placeholder several times but correct the cursor position only once at the end. It just cannot work correctly with scheduling, we'll always be dealing with cumulative error. Removing scheduling fixes the problem. Sadly, I cannot make the test work, I skipped it for now, going to give it another try later. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |