Fix find and replace
This commit is contained in:
@@ -265,13 +265,15 @@ class BrowserViewController: UIViewController
|
|||||||
|
|
||||||
// Find on page
|
// Find on page
|
||||||
documentControls.findOnPageControlView.addAction(UIAction(handler: { [unowned self] _ in
|
documentControls.findOnPageControlView.addAction(UIAction(handler: { [unowned self] _ in
|
||||||
documentControls.dismiss(animated: true, completion: nil)
|
documentControls.dismiss(animated: true, completion: { [unowned self] in
|
||||||
|
// Needs to happen after dismissal, otherwise the find navigator will pick up the document
|
||||||
if FindOnPageViewController.isEnabled() {
|
// controls as the divergent responder/deepest action responder (my bad...).
|
||||||
browserView.setFindOnPageVisible(true, animated: true)
|
if FindOnPageViewController.isEnabled() {
|
||||||
} else if #available(iOS 16.0, *) {
|
browserView.setFindOnPageVisible(true, animated: true)
|
||||||
browserView.webView?.findInteraction?.presentFindNavigator(showingReplace: false)
|
} else if #available(iOS 16.0, *) {
|
||||||
}
|
browserView.webView?.findInteraction?.presentFindNavigator(showingReplace: false)
|
||||||
|
}
|
||||||
|
})
|
||||||
}), for: .touchUpInside)
|
}), for: .touchUpInside)
|
||||||
|
|
||||||
// Navigation controls
|
// Navigation controls
|
||||||
|
|||||||
Reference in New Issue
Block a user