Esri / calcite-app-components

A collection of calcite components for building single page applications
https://esri.github.io/calcite-app-components/
Other
39 stars 10 forks source link

calcite-value-list: calciteListItemChange event #1024

Closed AdelheidF closed 4 years ago

AdelheidF commented 4 years ago

I have been using the event "calciteListItemChange".

It has been working fine for a long time, but I noticed today that the event is being called twice when I click on the row once. I would think that this has not always been like this. The first call returns selected:true and the second selected:false.

driskull commented 4 years ago

@jcfranco can you take this one?

jcfranco commented 4 years ago

I could only reproduce this by not using the multiple attribute on pick-list/value-list. Based based on the event's doc, this is working as expected (one event is emitted per item being toggled).

@AdelheidF Can you confirm this is what you're seeing?

driskull commented 4 years ago

That sounds correct since one is turned off and one is turned on.

AdelheidF commented 4 years ago

never mind what I said, closing...