Skip to content

Commit

Permalink
Adds override func 'becomeFirstResponder' to TableHeaderFooterView to…
Browse files Browse the repository at this point in the history
… fix selection bug (microsoft#263)

microsoft#229 caused a small regression where it is possible to select text in a TableViewHeaderFooterView with a link by double tapping a word. To fix this I overrode becomeFirstResponder() in TableViewHeaderFooterView.
  • Loading branch information
Jon-Schneider authored Oct 20, 2020
1 parent c11897e commit 5c12530
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/FluentUI/Table View/TableViewHeaderFooterView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ private class TableViewHeaderFooterTitleView: UITextView {
preconditionFailure("init(coder:) has not been implemented")
}

override func becomeFirstResponder() -> Bool {
return false
}

override var selectedTextRange: UITextRange? {
get {
// No need for selection, but we need to keep it selectable in order for links to work
Expand Down

0 comments on commit 5c12530

Please sign in to comment.