bulma-carousel icon indicating copy to clipboard operation
bulma-carousel copied to clipboard

Slide does not update the currentItem.pos

Open tjad opened this issue 6 years ago • 2 comments

https://github.com/Wikiki/bulma-carousel/blob/033a07476ada12ed986ad407539a1d669f943202/src/js/index.js#L372

This line exists in init - and is the only place that this.currentItem.pos is ever set this.currentItem.pos = this.currentItem.node ? Array.from(this.items).indexOf(this.currentItem.node)

Surely it should be set during the call to _slide() as well

tjad avatar Feb 20 '19 14:02 tjad

This is problematic when relying on the documentation's statement that the event emitted contains the relevant item position - the event always returns a position of 0.

tjad avatar Feb 20 '19 14:02 tjad

Hi,

have you tried the last released ? Events have been updated.

wikiki avatar Mar 07 '19 14:03 wikiki