зеркало из https://github.com/mozilla/gecko-dev.git
ddc7aad4e0
The JsTerm relies on the codeMirror "change" event to display the autocomplete popup, and then queries the DOM to get the cursor element which will serve as an anchor to the autocomplete popup. Unfortunately, the "change" event is fired by the editor __before__ the end of an operation (i.e. the actual DOM update). Which means that if we are fast enough to get the autocomplete items from the server, the cursor element was not changed in the dom, and the computation of the anchor is erroneous. We fix this by listening to the "changes" event, which is fired after the actual DOM changes. In order to do that, we pipe down the event from the code mirror instance to the source editor. Differential Revision: https://phabricator.services.mozilla.com/D2710 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
client | ||
docs | ||
platform | ||
server | ||
shared | ||
startup | ||
.eslintrc.js | ||
.eslintrc.mochitests.js | ||
.eslintrc.xpcshell.js | ||
CODE_OF_CONDUCT.md | ||
moz.build | ||
templates.mozbuild |