amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-carousel issue with 'slide' binding

Open jyn15 opened this issue 7 years ago • 1 comments

What's the issue?

<amp-carousel type=slides [slide]> binding not triggering slide change when the binding value for [slide] is 0.

How do we reproduce the issue?

https://jsbin.com/kusipegaco/1/edit?html,output In the example above, note that when you click the 'prev' button trying to go back from slide 1 to slide 0, the amp-carousel slide does not change.

What browsers are affected?

All browsers

Which AMP version is affected?

1911121900560

Worked in amp-carousel-0.1, broken in amp-carousel-0.2 I think the change from https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/0.1/slidescroll.js#L248 to https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/0.2/amp-carousel.js#L225 causes the issue.

jyn15 avatar Nov 21 '19 20:11 jyn15

@clawr

jyn15 avatar Nov 21 '19 20:11 jyn15