[wp-trac] [WordPress Trac] #42390: TinyMCE + Edge input:focus placeholders disappear

WordPress Trac noreply at wordpress.org
Thu Mar 15 18:13:19 UTC 2018


#42390: TinyMCE + Edge input:focus placeholders disappear
------------------------------+--------------------------------------------
 Reporter:  Cybr              |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  5.0
Component:  Administration    |     Version:  4.9
 Severity:  normal            |  Resolution:
 Keywords:  has-patch needs-  |     Focuses:  ui, accessibility, javascript
  refresh                     |
------------------------------+--------------------------------------------

Comment (by afercia):

 Investigating a bit on the original issue, I think it's also something
 related to timing. There are two small pieces of JavaScript involved
 there: in the Add New post screen, the first JS puts focus on the title
 field, and the second removes the "placeholder" (actually it's the label).
 One of the JS is inline in the page, the other one is in an enqueued
 script. I think this leads to different behaviors, depending on the
 browser speed in parsing the page and JS and then run the related JS
 functions. Hardware can play a role too. This is what I see dumping some
 debugging text in the console when the two functions run:

 [[Image(https://cldup.com/YjHTj4j2pJ.png)]]

 [[Image(https://cldup.com/sbDSNdnNhs.png)]]

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


More information about the wp-trac mailing list