Skip to content

Commit 6c3c5ad

Browse files
committed
fix(textview): ios fix for text selectable when not editable
1 parent 3d5a8a6 commit 6c3c5ad

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/textfield/textfield.ios.ts

-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ export class TextField extends TextFieldBase {
292292
}
293293
[editableProperty.setNative](value: boolean) {
294294
this.clearFocus();
295-
// this.nativeTextViewProtected.enabled = value;
296295
}
297296
[floatingColorProperty.setNative](value: Color) {
298297
const color = value instanceof Color ? value.ios : value;

src/textview/textview.ios.ts

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ export class TextView extends TextViewBase {
307307
}
308308
[editableProperty.setNative](value: boolean) {
309309
(this.nativeTextViewProtected as UITextView).editable = value;
310+
(this.nativeTextViewProtected as UITextView).selectable = value;
310311
}
311312
[floatingColorProperty.setNative](value: Color) {
312313
const color = value instanceof Color ? value.ios : value;

0 commit comments

Comments
 (0)