This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Andrei Prigorshnev 778abb067f
FIX: Caret moves to a wrong position when uploading an image via toolbar (#15684)
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.
2022-02-04 18:26:48 +04:00
..
app FIX: Caret moves to a wrong position when uploading an image via toolbar (#15684) 2022-02-04 18:26:48 +04:00
config DEV: Allow ember server --environment production to be used (#15431) 2021-12-31 12:26:23 +00:00
lib DEV: Improve Ember module shims under Ember CLI (#15795) (#15806) 2022-02-03 17:36:32 +00:00
public/assets/scripts DEV: Improve Ember module shims under Ember CLI (#15795) (#15806) 2022-02-03 17:36:32 +00:00
tests FIX: Caret moves to a wrong position when uploading an image via toolbar (#15684) 2022-02-04 18:26:48 +04:00
.ember-cli REFACTOR: Sync up master with changes for Ember-CLI (#11671) 2021-01-12 10:13:21 -05:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Improve Ember module shims under Ember CLI (#15795) (#15806) 2022-02-03 17:36:32 +00:00
package.json PERF: Update ember-auto-import (#15814) 2022-02-04 11:00:51 +00:00
testem.js DEV: Update plugin JS loading in Ember CLI testem environment 2022-01-18 10:16:29 +00:00