Open jacekbogdanski opened 5 years ago
This issue is easily reproducible using the AutoComplete control with the default throttle of 200ms. Just typing a character and immediately hitting the backspace key will trigger the error. If we lower the throttle to below 50ms it seems to work around the issue but that is a suboptimal solution for those that are using a webservice call in conjunction with the AutoComplete control.
Type of report
Bug
Provide detailed reproduction steps (if any)
/tests/plugins/autocomplete/manual/throttle
@anna
.backspace
.You may need to try a couple of times to get error result.
Expected result
No errors in a console.
Actual result
Other details
Buffered input function for textwatcher checks is called with a already modified range.
https://github.com/ckeditor/ckeditor-dev/blob/ddff49f8b81e8495c6741f1d536de3de28dc26ba/plugins/textwatcher/plugin.js#L246-L256