Presenting WKWebView to show web form, webview load successfully with following error "Error Domain=WKErrorDomain Code=5 "JavaScript execution returned a result of an unsupported type" UserInfo={NSLocalizedDescription=JavaScript execution returned a result of an unsupported type}", after loading webview clicked on date field and app freezes with following error "Failed to present a context menu for configuration with identifier _UIDatePickerCompactEditor. This is likely due to a different presentation occurring during the lifecycle of the interaction."
The web url working fine on iOS 13 and older and as well in xcode simulator safari.
HTML Tag:
<input type="date" name="ScheduleViewing/Date" id="ScheduleViewing/Date" class="form-control placeholder" value="" placeholder="Meeting Date *" style="background-color: transparent; position: relative; z-index: 1; background-position: initial initial; background-repeat: initial initial;">
iOS Code:
WKWebView *wkwebView = [[WKWebView alloc] initWithFrame:self.view.frame];
wkwebView.navigationDelegate = self;
NSURL *nsurl=[NSURL URLWithString:@" some url"];
NSURLRequest *nsrequest=[NSURLRequest requestWithURL:nsurl];
[wkwebView loadRequest:nsrequest];
[self.view addSubview:wkwebView];