[wp-trac] [WordPress Trac] #40750: Widgets: MediaElement.js player for audio widget sporadically fails to initialize
WordPress Trac
noreply at wordpress.org
Fri May 12 19:29:28 UTC 2017
#40750: Widgets: MediaElement.js player for audio widget sporadically fails to
initialize
--------------------------+--------------------
Reporter: westonruter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: Widgets | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Changes (by westonruter):
* keywords: => has-patch
Comment:
[attachment:40750.0.diff] is a fix which replicates the same logic
implemented for the Text widget. TinyMCE fails to initialize properly when
the widget is not fully expanded, and it seems ME.js has the same problem.
So this patch defers rendering the widget until its container is done
animating.
Ideally there would be an event we could listen for the completion of the
`:animated` state, but unfortunately it seems jQuery does not provide
this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40750#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list