amp-list 表单收音机未默认选中

amp-list form radio not defaulting to checked

我正在尝试使用 amp-list 来显示产品并允许用户在添加到购物车之前 select 数量。但是,当它在放大器列表中时,它似乎不想工作。

这是我所说的一个例子。您可以在页面的最底部看到一个输入 type=radio 允许 checked=checked 但在 amp-list 中它没有按预期工作。

<amp-list id="paged-amp-list" layout="fixed-height" height="700" src="https://ampbyexample.com/advanced/paged_list/search" [src]="'https://ampbyexample.com/advanced/paged_list/search?page=' + pageNumber" single-item>
    <template type="amp-mustache">
      ....
          <input type="radio" id="quantity-1" name="Quantity" value="1" checked="checked"> 1
      ....
    </template>        
  </amp-list>

https://codepen.io/anon/pen/QQJEMN

因为那些无线电输入使用相同的名称。

codepen.io/buihoanghai/pen/vdQJdG