Skip to content

Commit 5b614a3

Browse files
authored
Fix/selection defaults false (#44)
* fix(ios): collapse NitroText selection on outside taps * refactor: streamline TextAncestorContext initialization in NitroText component * fix(ios): update NitroText selection behavior to default to non-selectable
1 parent 8e7cae8 commit 5b614a3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ios/NitroTextImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class NitroTextImpl {
4848
}
4949

5050
func setSelectable(_ selectable: Bool?) {
51-
nitroTextView?.isSelectable = selectable ?? true
51+
nitroTextView?.isSelectable = selectable ?? false
5252
}
5353

5454
func setAllowFontScaling(_ value: Bool?) {

ios/NitroTextView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class NitroTextView: UITextView {
3939

4040
private func setupView() {
4141
isEditable = false
42-
isSelectable = true
42+
isSelectable = false
4343
isScrollEnabled = false
4444
isUserInteractionEnabled = true
4545
backgroundColor = .clear

0 commit comments

Comments
 (0)