amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

[Story Interactive] Use `index`property in backend response to show responses

Open mszylkowski opened this issue 5 years ago • 1 comments

Description

If the backend responds with [{index: 2, count: 5, selected: true}] it will mark as selected the first option instead of the third option. When some option indices are missing, the results don't get properly matched to the options.

Reproduction Steps

Set up a server that answers [{index: 2, count: 5, selected: true}] Connect interactive component to backend Component will highlight the first element instead of the third

Relevant Logs

No response

Browser(s) Affected

Chrome, Firefox, Safari

AMP Version Affected

latest

mszylkowski avatar May 24 '21 20:05 mszylkowski

I can work on this since it's a good first issue

Brandons42 avatar Jun 11 '21 15:06 Brandons42