Skip to content

Commit

Permalink
Fix issue with navigating in firefox/safari (#65163) (#65191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes committed May 5, 2020
1 parent bb31af3 commit 07b2bfb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,18 @@ export function initVisualizeApp(app, deps) {
);
}

// This delay is needed to prevent some navigation issues in Firefox/Safari.
// see https://github.com/elastic/kibana/issues/65161
const delay = res => {
return new Promise(resolve => {
setTimeout(() => resolve(res), 0);
});
};

return ensureDefaultIndexPattern(core, data, history)
.then(() => savedVisualizations.get($route.current.params))
.then(getResolvedResults(deps))
.then(delay)
.catch(
redirectWhenMissing({
history,
Expand Down

0 comments on commit 07b2bfb

Please sign in to comment.