Skip to content

Commit 412f719

Browse files
authored
Remove userSelect: none on NativeViewGestureHandler (#2260)
## Description This PR removes `userSelect: none` property from NativeViewGestureHandler, that wraps `ScrollView` and `TextInput`. `Buttons` with NativeView still have this property. This solves issue #2211 ## Test plan Tested on example app
1 parent ff2a41d commit 412f719

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/web/handlers/NativeViewGestureHandler.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ export default class NativeViewGestureHandler extends GestureHandler {
2929
this.buttonRole = true;
3030
} else {
3131
this.buttonRole = false;
32-
}
33-
34-
if (this.view.tagName.toLowerCase() === 'input') {
35-
//Enables text input on Safari
3632
this.view.style['webkitUserSelect'] = 'auto';
33+
this.view.style['userSelect'] = 'auto';
3734
}
3835
}
3936

0 commit comments

Comments
 (0)