ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
193 stars 178 forks source link

bug(ios) - after opening the keyboard in ios, user-select: auto stops working #50

Open zakton5 opened 5 years ago

zakton5 commented 5 years ago

I am trying to make some text selectable in my app using user-select: auto (which is converted to all of the appropriate browser specific css needed). This does work fine until the keyboard is opened. After that I can no longer select the text that I could before

davorduhovic commented 5 years ago

+1 @zakton5 Did you manage to find any solution for this? ( Btw, this is only on versions 12.0 and 12.1 )

brendonbitencourt commented 5 years ago

I have de same issue, and I found an issue opened with cordova-plugin-ionic-webview.

zakton5 commented 5 years ago

@davorduhovic I did not, unfortunately. I did find out that ionic disables user-select by default which caused the selected text to be unselectable. But that is not related to this issue. I fixed that with the scss below, but then I had to manually set user-select: none where it was necessary.

body {
    user-select: auto !important;
}
jcesarmobile commented 5 years ago

Can you provide a sample app? In the linked issue, it's mentioned that it's an Apple bug that also affects safari, but not sure if it's the same issue