kytos-ng / mef_eline

Kytos NApp to create and manage point-to-point L2 circuits
https://kytos-ng.github.io/api/mef_eline.html
MIT License
0 stars 8 forks source link

UI: Bug when creating an EVC -- using the arrow keys plus enter leads to the EVC being prematurely requested #518

Open italovalcy opened 4 days ago

italovalcy commented 4 days ago

Hi,

Using Kytos UI 2023.2.1 and trying to create a EVC presents a weird behavior not identified before: if you start typing the UNI interface and then use the arrow keys to select an interface then press Enter, this will lead to the EVC being prematurely requested. Some times even with the wrong data (before the autocomplete process it):

The request body contains invalid API data. 'sju_s02-eth7 - 00:00:00:00:00:24:00:02:7' is too long for field uni_z/interface_id.

Screenshot 2024-10-01 at 14 27 26

viniarck commented 4 days ago

Thanks for catching this, Italo. I've just confirmed that on master it also happens:

20241001_160417

Let's see how can help to fix it and look into the trevoreyre/autocomplete-vue that you mentioned.

viniarck commented 4 days ago

Workaround:

During autocompletion if the user clicks instead of using keyboard arrow + enter, it works.

italovalcy commented 2 days ago

Workaround:

During autocompletion if the user clicks instead of using keyboard arrow + enter, it works.

exactly. Forgot to mention this. Thanks for documenting it, Vinicius.