our project needs to have copy function in a hybird APP, project, but the full selection button in the long press pop-up menu of the system will select all the text and white space on the page and add a highlighted background to these areas, hoping to achieve the effect of selecting all the current elements. Our project also has an H5 version, and the H5 version performs normally.
the problem occurred on ios 10 and 11 machines. Trying to use user-select did not resolve
related codes
//message
:not(input), :not(textarea) {
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
//
.message {
user-select: text;
-webkit-user-select: text;
-webkit-touch-callout: default;
}