Text selection does not happen on iOS 13.4
See original GitHub issueBug Report
Problem
After updating the iPad and iPhone to version 13.4, selecting the text by holding and dragging is no longer working. we’ve tested it in 2 ionic 4 apps and in both, the text selection didn’t work.
https://drive.google.com/file/d/12f-TX9VKKhXyt0hXb5bJCuKQhizGeZb0/view?usp=sharing
Code
<div class="selectable">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, se
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation laboris.
</div>
.selectable {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
Environment, Platform, Device
Latest iOS version (13.4) in iPad or iPhone
Version information
Ionic:
Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.7
@angular-devkit/build-angular : 0.13.10
@angular-devkit/schematics : 7.3.10
@angular/cli : 7.3.10
@ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : 8.0.0
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 23 other plugins)
Utility:
cordova-res : 0.11.0
native-run : not installed
System:
NodeJS : v12.14.1 (/usr/local/bin/node)
npm : 6.14.2
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Ionic 4 | Text selection does not happen on iPad iOS 13.4
After updating an iPad to the latest version (13.4), selecting the text by holding and dragging is no longer working. we've tested it...
Read more >Can't Select Text to Copy and Paste - Apple Community
Since updating to iOS 13.4.1, I'm no longer able to select text in a browser, in order to copy and paste it. I...
Read more >Apple releasing iOS 13.4 and watchOS 6.2 GM to developers
Apple today is releasing the GM seed of iOS 13.4, iPadOS 13.4, ... in the user interface, press buttons and assist with text...
Read more >iMessage not working iOS 13 or iPadOS? Fix it today
Having trouble with the Messages app and iMessage using iOS 13 or iPadOS? We got you covered with our top tips to get...
Read more >iOS 13 - Wikipedia
iOS 13 is the thirteenth major release of the iOS mobile operating system developed by Apple Inc. for their iPhone, iPod Touch, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, sorry, that’s for ionic wkwebview plugin, in Apache wkwebview plugin the preference is
<preference name="Allow3DTouchLinkPreview" value="true" />
, but true is the default value.If you are using a different wkwebview plugin or UIWebView might be a different preference or not configurable.
According to the link it’s been fixed by Apple already, but not released yet, not sure in which iOS version will be included.
Thanks and that’s the case! I’m using Apache wkwebview plugin, developers who encountered this problem, set two preferences in Cordova config.xml, and disable ‘dragstart’ event on elements in javascript, text selection works fine and 3D touch gesture is disabled as usual in iOS 13.4 (along with iPadOS 13.4):
config.xml :
your app.js :