When you select an annotation, then you try to hide the popup by tapping somewhere in the document, the popup is hidden and the WKWebView registers the tap properly, so the selection is hidden as well, but the onBackdropTap event is reported and so the UI also toggles, which shouldn't happen. So I suppose when annotation is selected and background is tapped, just don't send the onBackdropTap event, unless that breaks something else.
When you select an annotation, then you try to hide the popup by tapping somewhere in the document, the popup is hidden and the WKWebView registers the tap properly, so the selection is hidden as well, but the
onBackdropTapevent is reported and so the UI also toggles, which shouldn't happen. So I suppose when annotation is selected and background is tapped, just don't send theonBackdropTapevent, unless that breaks something else.