Add argument to stopPropagation method

Currently returns the following error when closing the sidebar by clicking the 'X' button: ```Uncaught TypeError: Cannot read property 'stopPropagation' of undefined```