WKWebView iOS15 long press text selection

Hi to all! With the iOS 15 update, in my web application is appear a new functionality that i want disable. This feature is based in a long press and dragging is possible select some text.

i've tried to use:

WKWebViewConfiguration* conf = [[WKWebViewConfiguration alloc] init];
WKPreferences *preferences = [[WKPreferences alloc] init];
preferences.textInteractionEnabled = false;
conf.preferences = preferences;```

but it disable all interactions with text, text inputs too.
Someone can help me please?

Thank you,
Antonino



* {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

textarea, input {
  user-select: text;
  -webkit-user-select: text;
}

You can inject some css to solve this problem.

WKWebView iOS15 long press text selection
 
 
Q