remove popover onMouseUp over the editor