A web form created on Frappe 14. Unable to clear this alert by tapping on top right X. Same is the case on desktop, but working with Escape key, and not with the mouse click.
If I click outside this popup / alert window, then it goes away. But there is hardly any outside space on mobile.
This happens when website on which form is loaded is with bootstrap v 5.0.0 as currently frappe is still on version 4.5
you can run following in browser console to verify bootstrap version
$.fn.tooltip.Constructor.VERSION
so there are 2 solutions for you
downgrade the main website to bootstrap 4.5 : might not be possible to change as whole website might break down.
override the form code to dismiss even with bootstrap 5.0.0 by changing property data-dismiss=“modal” to data-bs-dismiss=“modal”. alternatively you can put below code in client script or in a seperate file and import it globally using hooks.py.