Move the popover under the modal backdrop and simply click-disabling when the modal is open.