Entity reference widget only works if you type slowly
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3452136. --> Reported by: [dieterholvoet](https://www.drupal.org/user/3567222) Related to !95 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>There seems to be an issue with the debounce logic. When I quickly type something, I get no results. Additionally, multiple console errors appear:</p> <blockquote><p> Error fetching data: DOMException: The operation was aborted.<br> handleAutocomplete <a href="https://whathappens.test/modules/contrib/tagify/js/tagify.js?v=1.0.11:273">https://whathappens.test/modules/contrib/tagify/js/tagify.js?v=1.0.11:273</a><br> onInput <a href="https://whathappens.test/modules/contrib/tagify/js/tagify.js?v=1.0.11:326">https://whathappens.test/modules/contrib/tagify/js/tagify.js?v=1.0.11:326</a><br> later <a href="https://whathappens.test/core/misc/debounce.js?v=10.2.4:37">https://whathappens.test/core/misc/debounce.js?v=10.2.4:37</a><br> setTimeout handler*Drupal.debounce/&lt; <a href="https://whathappens.test/core/misc/debounce.js?v=10.2.4:42">https://whathappens.test/core/misc/debounce.js?v=10.2.4:42</a><br> trigger <a href="https://cdnjs.cloudflare.com/ajax/libs/tagify/4.26.0/tagify.min.js:1">https://cdnjs.cloudflare.com/ajax/libs/tagify/4.26.0/tagify.min.js:1</a> </p></blockquote> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>I made a <a href="https://www.drupal.org/files/issues/2024-06-03/CleanShot%202024-06-03%20at%2009.54.50.mp4">screen recording</a> to illustrate the issue. The first time around it doesn't happen, but the second time it does. I'm able to work around the issue by removing one character, waiting for the spinner to disappear, and re-entering the last character again. In that case results appear.</p>
issue