pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Pages with multiple selectors have items with duplicated IDs

Open flodolo opened this issue 4 months ago • 0 comments

Noticed in /messaging, but it's the same in /admin.

We use multiple instance of the widget multiple_item_selector, which uses input fields with IDs.

<div class="multiple-item-selector clearfix">
    {{ item_selector_list.list(
        id='available',
        title='Available',
        items=items_available,
        right_shortcut='Move all →',
    )}}
    {{ item_selector_list.list(
        id='selected',
        title='Chosen',
        items=items_selected,
        right_shortcut='← Move all',
        sortable=sortable,
    )}}
    {% if form_field %}
    {{ form_field }}
    {% endif %}
</div>

flodolo avatar Aug 23 '25 08:08 flodolo