[wp-trac] [WordPress Trac] #48030: HTML5 input types are not being reset when submitting the addtag form
WordPress Trac
noreply at wordpress.org
Thu Sep 12 18:42:02 UTC 2019
#48030: HTML5 input types are not being reset when submitting the addtag form
--------------------------------------------+-----------------------------
Reporter: stevegrunwell | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: minor | Keywords:
Focuses: ui, javascript, administration |
--------------------------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48030>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list