Skip to content

Commit

Permalink
Fix UBE issue: cannot view or interact with the classic block on Jetp…
Browse files Browse the repository at this point in the history
…ack sites (#26006)
  • Loading branch information
marecar3 authored Oct 12, 2020
1 parent 15f4799 commit c0c5a93
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,13 @@ private void evaluateJavaScript(String script) {

private void onGutenbergReady() {
preventAutoSavesScript();
insertBlockScript();
final Handler handler = new Handler();
handler.postDelayed(() -> {
// We want to make sure that page is loaded
// with all elements before executing external JS
injectOnGutenbergReadyExternalSources();
// Inject block content
insertBlockScript();
// We need some extra time to hide all unwanted html elements
// like NUX (new user experience) modal is.
mForegroundView.postDelayed(() -> mForegroundView.setVisibility(View.INVISIBLE), 1500);
Expand Down

0 comments on commit c0c5a93

Please sign in to comment.