Fixed bug with clickable buttons on popover hide