Closed ccarruitero closed 1 year ago
When writing the prompt for a bot and try to move around with keyboard to correct something. Using right arrow keyboard doesn't works. It generates an error in browser console:
Error invoking action "keydown->autocomplete#keydown" TypeError: this.filteredItems[this.index] is undefined completeHighlightedSelection autocomplete_controller-8fbf0286293f13e48773f4c0714f263715866c1a14fd932647ba0211582daaa0.js:74 keydown autocomplete_controller-8fbf0286293f13e48773f4c0714f263715866c1a14fd932647ba0211582daaa0.js:51 invokeWithEvent stimulus.js:362 handleEvent stimulus.js:329 handleEvent stimulus.js:31 Object { identifier: "autocomplete", controller: {…}, element: textarea#prompt_textarea.w-full.shadow-xl.rounded-md.bg-gray-700.text-white.pl-3, index: 3, event: keydown }
Browser: Firefox 112.0.2
fixed
When writing the prompt for a bot and try to move around with keyboard to correct something. Using right arrow keyboard doesn't works. It generates an error in browser console:
Browser: Firefox 112.0.2