Fix for situation when click on popup close button filters through to underlying canvas.