Skip to content

Commit

Permalink
Merge pull request #5082 from wikimedia/article-view-link-bug
Browse files Browse the repository at this point in the history
Fix Article Web View Link Bug
  • Loading branch information
l-olson1214 authored Nov 19, 2024
2 parents 449b0c4 + 5065409 commit bb7adfa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Wikipedia/Code/ArticleViewController+FindInPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ extension ArticleViewController {
self.resignFirstResponder()
completion?()
}

self.findInPage.view?.removeFromSuperview()
self.view.layoutSubviews()
self.findInPage.view = nil
}

func resetFindInPage(_ completion: (() -> Void)? = nil) {
Expand All @@ -83,7 +87,7 @@ extension ArticleViewController {
}
})
}

func scrollToAndFocusOnFirstFindInPageMatch() {
findInPage.selectedIndex = -1
keyboardBarDidTapNext(findInPage.view)
Expand Down

0 comments on commit bb7adfa

Please sign in to comment.