2.6.10
https://jsfiddle.net/ebgj6fra/2/
Hello world! should change to tada!
In latest Safari (12.1) on Mac OS, nothing happens, but it works as expected in other browsers.
Removing the iframe from the page makes the issue go away, as seen here: https://jsfiddle.net/ebgj6fra/3/
Seems like maybe there's a difference in how/when the latest Safari runs the flushCallbacks.
Conditionally rendering the iframe (v-if="myExpression !== null), triggering the listener inside a setTimeout or calling $forceUpdate circumvents the issue.
Thanks for the boiled down repro 👌
This issue still exists. Perhaps this should be mentioned somewhere in the Vue docs?
We used this as a fix in our main Vue instance:
mounted: function() {
this.$forceUpdate();
}
Most helpful comment
Thanks for the boiled down repro 👌