kytos-ng / ui

Kytos Admin UI
MIT License
0 stars 3 forks source link

Fix Select component event trigger #33

Closed rmotitsuki closed 1 year ago

rmotitsuki commented 1 year ago

In the Select component, when the user selects multiple items, the event trigger fills the selected variable multiple times, creating a huge array. This PR corrects this behavior and populates the selected variable with only selected items.

italovalcy commented 1 year ago

In the Select component, when the user selects multiple items, the event trigger fills the selected variable multiple times, creating a huge array. This PR corrects this behavior and populates the selected variable with only selected items.

@rmotitsuki the issue https://github.com/kytos-ng/ui/issues/34 seems to be related to this PR. I tested without the changes proposed here and it worked.