#36724: FilteredSelectMultiple widget has broken "for" attribute on <legend>
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Varun
| Kasyap Pentamaraju
Type: Bug | Status: assigned
Component: contrib.admin | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Jacob Walls:
Old description:
> - View the User model in the admin
> - Inspect the label "Groups:"
> {{{
> <legend for="id_groups">Groups:</legend>
> }}}
> - Query for that element:
> {{{#!js
> > document.getElementById("id_groups")
> null
> }}}
>
> There should probably be an `id` on the empty `<div>` in this structure?
>
> {{{
> <div>
> <div class="flex-container">
> <div class="related-widget-wrapper" data-model-ref="group">
> <div class="selector">
> <div class="selector-available">
> <div id="id_groups_from_title" class="selector-available-
> title">
> ...
> }}}
>
> SelectFilter2.js constructs ids like "id_groups_from_title" and
> "id_groups_selector_chosen" in this case.
New description:
- View the User model in the admin
- Inspect the label "Groups:"
{{{
<legend for="id_groups">Groups:</legend>
}}}
- Query for that element:
{{{#!js
> document.getElementById("id_groups")
null
}}}
There should probably be an `id` on the top `<div>` in this structure?
{{{
<div>
<div class="flex-container">
<div class="related-widget-wrapper" data-model-ref="group">
<div class="selector">
<div class="selector-available">
<div id="id_groups_from_title" class="selector-available-title">
...
}}}
SelectFilter2.js constructs ids like "id_groups_from_title" and
"id_groups_selector_chosen" in this case.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/36724#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019a7890056b-ebe7ec00-41cf-4648-9a1f-1b1c1cba2e22-000000%40eu-central-1.amazonses.com.