[wp-trac] [WordPress Trac] #48030: HTML5 input types are not being reset when submitting the addtag form

WordPress Trac noreply at wordpress.org
Tue Apr 12 19:35:44 UTC 2022


#48030: HTML5 input types are not being reset when submitting the addtag form
-----------------------------+---------------------------------------------
 Reporter:  stevegrunwell    |       Owner:  davidbaumwald
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  6.0
Component:  Taxonomy         |     Version:
 Severity:  minor            |  Resolution:  fixed
 Keywords:  needs-testing    |     Focuses:  ui, javascript, administration
  has-patch                  |
-----------------------------+---------------------------------------------
Changes (by davidbaumwald):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53168" 53168]:
 {{{
 #!CommitTicketReference repository="" revision="53168"
 Taxonomy: Only reset non-button form field values after adding a tag.

 [52953] added HTML5 input types to the form reset after a tag is created.
 The selector was a bit too greedy, causing `button` types to have their
 values reset also.

 This change updates the jQuery selector to exclude `button`, `submit`, and
 `reset` input types from the form reset.

 Follow-up to [52953].

 Props peterwilsoncc.
 Fixes #48030.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48030#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list