kytos-ng / ui

Kytos Admin UI
MIT License
0 stars 3 forks source link

fixed enter key handler on k-input-auto #91

Closed italovalcy closed 1 month ago

italovalcy commented 1 month ago

Closes #90

Summary

See updated changelog file. Basically, recent versions of @trevoreyre/autocomplete-vue introduced a new option called submitOnEnter, which prevents the input from properly updating the value of the input based on the chosen option specially on our case which the options are typically list items.

Local Tests

Example of using k-input-auto with recent fixes on mef_eline (https://github.com/kytos-ng/mef_eline/issues/518):

Oct-07-2024 05-16-56

End-to-End Tests

N/A

italovalcy commented 1 month ago

It works well; I was able to select an option by utilizing the arrow keys and hitting enter within Pathfinder.

Hi Heriberto! thanks for the review and testing it out. Indeed, pathfinder wouldn't be a good testing case because since pathfinder k-input-auto are out of a form HTML tag, they are not actually impacted by this issue. Anyway, thanks for the update!