Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#41625 closed defect (bug) (fixed)

Logic for detecting expanded Text and Media widgets is inconsistent/unreliable

Reported by: westonruter's profile westonruter Owned by: westonruter's profile westonruter
Milestone: 4.9 Priority: normal
Severity: normal Version: 4.8
Component: Widgets Keywords: has-patch
Focuses: Cc:

Description

The Text widget and Media widgets in 4.8 defer to initialize their JS fields until the widget fully expands since the JS logic needs the element's dimensions to be finalized to initialize properly. The current logic for detecting the completion of the animation is faulty in that it is looking at the wrong element for the :animated pseudo-class and it also should be using the open class instead, the latter which is not properly getting set for widgets in the Customizer.

Attachments (1)

41625.0.diff (3.6 KB) - added by westonruter 8 years ago.

Download all attachments as: .zip

Change History (3)

@westonruter
8 years ago

#1 @westonruter
8 years ago

  • Keywords has-patch added

#2 @westonruter
8 years ago

  • Owner set to westonruter
  • Resolution set to fixed
  • Status changed from new to closed

In 41249:

Widgets: Add missing open class for expanded widgets in Customizer; utilize open class for expansion detection in Text and Media widgets.

Fixes #41625.

Note: See TracTickets for help on using tickets.