mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #27250 -- Removed 'for ="..."' from CheckboxSelectMultiple's <label>.
This commit is contained in:
@@ -822,6 +822,13 @@ class CheckboxSelectMultiple(RendererMixin, SelectMultiple):
|
||||
# never known if the value is actually omitted.
|
||||
return False
|
||||
|
||||
def id_for_label(self, id_):
|
||||
""""
|
||||
Don't include for="field_0" in <label> because clicking such a label
|
||||
would toggle the first checkbox.
|
||||
"""
|
||||
return ''
|
||||
|
||||
|
||||
class MultiWidget(Widget):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user