[wp-trac] [WordPress Trac] #43364: After blur on the custom text field the date format should update below.

WordPress Trac noreply at wordpress.org
Wed Feb 21 09:12:25 UTC 2018


#43364: After blur on the custom text field the date format should update below.
------------------------------+--------------------------------------------
 Reporter:  dilipbheda        |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Administration    |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch needs-  |     Focuses:  ui, accessibility, javascript
  refresh                     |
------------------------------+--------------------------------------------
Changes (by afercia):

 * keywords:  has-patch reporter-feedback => has-patch needs-refresh


Comment:

 For some background, see the original ticket and changeset: #12636 /
 [15757].

 @Girishpanchal thanks. I'd agree `input` seems a better option, worth
 trying it now that WordPress has dropped support for old IE versions that
 don't support `input`. However, firing an AJAX request at any key press is
 something that should be avoided. With the proposed patch:

 - `keyup` will fire an AJAX request at any key press, including non-
 character keys like the arrow keys, Home, End, etc. I think `keyup`
 shouldn't be used, unless I'm missing something.
 - `input` will cover any input with both mouse and keyboard; however, I'd
 say nothing should happen while users are still typing; ideally, the AJAX
 request should be debounced while users are still typing in the field and
 fire only when they stop typing. WordPress is already using this pattern
 in other places, for example for the Themes and Plugins search, and I'd
 suggest to use the same pattern here too.

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


More information about the wp-trac mailing list