Skip to content

Commit

Permalink
fix(textview): ios fix for text selectable when not editable
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 28, 2024
1 parent 3d5a8a6 commit 6c3c5ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/textfield/textfield.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ export class TextField extends TextFieldBase {
}
[editableProperty.setNative](value: boolean) {
this.clearFocus();
// this.nativeTextViewProtected.enabled = value;
}
[floatingColorProperty.setNative](value: Color) {
const color = value instanceof Color ? value.ios : value;
Expand Down
1 change: 1 addition & 0 deletions src/textview/textview.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export class TextView extends TextViewBase {
}
[editableProperty.setNative](value: boolean) {
(this.nativeTextViewProtected as UITextView).editable = value;
(this.nativeTextViewProtected as UITextView).selectable = value;
}
[floatingColorProperty.setNative](value: Color) {
const color = value instanceof Color ? value.ios : value;
Expand Down

0 comments on commit 6c3c5ad

Please sign in to comment.