Can't turn off inline auto predictions in WKWebView on Mac

I have a WKWebView that contains a js text editor, built on top of a content editable div. Currently, inline predictions on Mac break the text editors functionality significantly every time there's a prediction. There's not a way for me to fix this on the js side unless I can know when a prediction is shown.

I've tried disabling inline predictions and writing tools with the web view config, but it doesn't work:

let config = WKWebViewConfiguration()
config.writingToolsBehavior = .none
config.allowsInlinePredictions = false
let webView = WKWebView(frame: .zero, configuration: config)

I've also tried disabling all spellcheck and autocorrect features in the html but that doesn't work either:

<div contenteditable="true" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></div>

Is there anything I can do to turn it off? Or, is it possible to know when the WebView is predicting text?

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports.

Bug Reporting: How and Why? has tips on creating your bug report.

Can't turn off inline auto predictions in WKWebView on Mac
 
 
Q