[wp-trac] [WordPress Trac] #29765: row actions and focusin focusout

WordPress Trac noreply at wordpress.org
Sat Sep 27 13:35:58 UTC 2014


#29765: row actions and focusin focusout
----------------------------+-----------------------------
 Reporter:  afercia         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Comments        |    Version:  4.0
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 Several kinds of listings have hidden "row actions" that are then revealed
 on mouse hover and on "focusin". In the specific case of comments
 listings, when tabbing in the Comments screen they're correctly revealed
 but in the Edit Post screen they don't. See screenshot:

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

 In the Edit Post screen, comments are not ready on DOM ready :) focusin
 and focusout events need to be delegated.

 A second issue is caused by the setTimeout used on focusout: it's needed
 for Firefox so it can't be removed but then Chrome doesn't remove the
 "visible" CSS class when there are no other focusable elements between the
 selected elements. This happens just in few places, for example in the
 Dashboard, see second screenshot where all the previous "row-actions" stay
 visible:

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

 Proposed patch delegates focusin and focusout and tries to give a little
 help to Chrome.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29765>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list