Skip to content

Commit

Permalink
Merge branch '1.10' into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Apr 12, 2022
2 parents 1149716 + 22e7665 commit 2be48cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions client/src/boot/BootRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@ class BootRoutes {
});
});

// Hack: Initialise react event delegation prior to starting the page router.
// Without this, react event delegation isn't initialised until the first component
// with an event handler is rendered, which means the page router will intercept
// events that should be caught by react component event handlers.
// Note that this empty link is rendered into an element that doesn't exist in the DOM.
ReactDOM.render(
<a role="none" onClick={() => {}} />,
document.createElement('div')
);

// Start the page router
pageRouter.start();
}

Expand Down

0 comments on commit 2be48cf

Please sign in to comment.