a1626 / image-carousel

Polymer element for image carousel
https://www.webcomponents.org/element/a1626/image-carousel/elements/image-carousel
MIT License
8 stars 2 forks source link

currentSelectedItem property gives undefined ! #7

Closed cappittall closed 6 years ago

cappittall commented 6 years ago

First of all, thank you very much for this useful component. currentSelectedItem property is not reflectin upon image changes.

when I go through the codes. I think below code:

          /**
           * Gives index of image on display (count starts from 0).
           */
           currentSelectedItem: {
            type: Number,
            value: 0,
            readOnly: true
          },

If I am not wrong, should be

notify:true

a1626 commented 6 years ago

You are right notify property needs to be included. I'm on vacation right now I'll fix, test it ASAP.

a1626 commented 6 years ago

@cappittall thanks for reporting the issue i've fixed it in v2.0.1.