[wp-trac] [WordPress Trac] #57753: Quickedit characters on date fields

WordPress Trac noreply at wordpress.org
Wed Feb 22 20:51:17 UTC 2023


#57753: Quickedit characters on date fields
-----------------------------+---------------------------------------------
 Reporter:  garbagedisco     |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Quick/Bulk Edit  |     Version:  6.1.1
 Severity:  trivial          |  Resolution:
 Keywords:  has-screenshots  |     Focuses:  ui, javascript, administration
-----------------------------+---------------------------------------------
Changes (by oglekler):

 * keywords:   => has-screenshots
 * focuses:   => ui, javascript, administration


Comment:

 I checked the described behavior and the result of usage of letters
 instead of digits is that document is getting current date and 00:00 time
 as a date. I suppose From a logical point of view, it is fine and there is
 no need to do addition checks or filtering on the backend.

 This inconvenience can be fixed in the admin by two options:
 1. Change input types from text to number. But in this case, input is
 getting 'up' and 'down' arrows, and its appearance is changed. This change
 can be tricky to return to how it looks now.
 2. Stop adding letters through filtering keyboard's input in this input
 field and removing everything which is added but not digit.

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


More information about the wp-trac mailing list