Opened 6 years ago

Last modified 6 years ago

#29488 closed Bug

FilteredSelectMultiple Controls Don't Work if The Name of the Widget Has a Space — at Initial Version

Reported by: Mark Phillips Owned by: nobody
Component: contrib.admin Version: 2.0
Severity: Normal Keywords: FilteredSelectMultiple widget
Cc: Carlton Gibson Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If the label for the FilteredSelectMultiple has a space in it, the controls for moving data between the boxes are not activated. The widget still works if one double clicks on the elements in the left box, they move to the right box. But the arrows don't work. Tested on Chrome 67.0.3396.62 (Official Build) (64-bit) and Firefox 60.0.1 (64-bit) using runserver to run my django code.

Take a look at the attached image first.png. There are two FilteredSelectMultiple widgets, one called Pets and one called Pet Names. Note that in the widget Pet Names, the controls are not highlighted, but the controls in the Pets widget are highlighted.

Take a look at the attached image second.png. The only change to the code was to change the Pet Names label to Pet_Names (ie replaced the space between Pet and Names with an underscore Pet Names -> Pet_Names). Now the controls are working.

Change History (2)

by Mark Phillips, 6 years ago

Attachment: first.png added

Screen shot showing a FilteredSelectMultiple widget with a space in the label and the controls not working.

by Mark Phillips, 6 years ago

Attachment: second.png added

Screen shot showing a FilteredSelectMultiple widget without a space in the label and the controls are working.

Note: See TracTickets for help on using tickets.
Back to Top