Call realContainer to bind the events.

Otherwise they're still bound to the document and not the shadowroot.