amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-carousel index does not update on amp-form when an input is invalid on submit and autoslides

Open cristianperezrodriguez opened this issue 9 months ago • 4 comments

Description

Hello, im developing an email with amp-form and amp-carousel to slide thro questions and when submit triggers the validation, the slider moves to the correct slide, but the "currentIndex"/"slideCange" dosent change/trigger. Have a good day, and btw, amp is pretty cool ;)

Reproduction Steps

At the example you can see 4 slider buttons and at slide 2/4 there is a required field. You can see a slide counter (1 of 4) that changes when you slide manualy, but when the validation is triggered when you submit, the slide index, dosent change(and the slideChange never trigger), i readed that the slideChange event can be a pain, but i think the index would need to be updated. Thanks for all and i leave here the example: AMP4Email PlayGround Example

Relevant Logs


Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

cristianperezrodriguez avatar Mar 28 '25 10:03 cristianperezrodriguez