Opened 18 months ago
Last modified 13 days ago
#48030 new defect (bug)
HTML5 input types are not being reset when submitting the addtag form
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | minor | Version: | |
Component: | Administration | Keywords: | has-patch needs-testing |
Focuses: | ui, javascript, administration | Cc: |
Description (last modified by )
The addtag
form on wp-admin/edit-tags.php
automatically clears the new term's name, slug, and description field but will *not* clear any visible inputs beyond input[type="text"]
and textarea
.
The offending bit of code is in js/_enqueues/admin/tags.js
:
$('input[type="text"]:visible, textarea:visible', form).val('');
If we broaden the scope a bit, we can hit all visible inputs but still exclude checkboxes + radios.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Updated version that excludes radio buttons and checkboxes.