Opened 10 years ago
Closed 10 years ago
#29765 closed defect (bug) (fixed)
row actions and focusin focusout
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Comments | Keywords: | has-patch needs-testing |
Focuses: | ui, javascript | Cc: |
Description
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:
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:
Proposed patch delegates focusin and focusout and tries to give a little help to Chrome.
refreshed patch after r31173