jush icon indicating copy to clipboard operation
jush copied to clipboard

Autocomplete: Hitting Enter/Tab key with empty SQL area not working

Open peterpp opened this issue 7 months ago • 1 comments

If I hit Enter or Tab key right after the SQL area is displayed with autocomplete popup, no autocomplete option is applied.

Both Firefox and Chrome on macOS. The issue starts with this commit: https://github.com/vrana/jush/commit/61241da2984859dc7331a93fc7afec54d9fccbb0

https://github.com/user-attachments/assets/5c02c5a2-a123-4706-b642-f2c712b09134

peterpp avatar Jul 29 '25 15:07 peterpp

From the browser console:

Uncaught TypeError: can't access property "container", start is undefined
    insertAutocomplete http://localhost/jush/modules/jush-textarea.js:249
    keydown http://localhost/jush/modules/jush-textarea.js:127
    textarea http://localhost/jush/modules/jush-textarea.js:341
    <anonymous> http://localhost/jush/textarea.html:19
jush-textarea.js:249:19

peterpp avatar Jul 29 '25 16:07 peterpp