top | item 45410029

Ask HN: How to disable Android keyboard word prediction on websites?

3 points| maenbalja | 5 months ago

I'm making a word game site and I noticed on Android keyboards that word predictions/suggestions appear on top of the keyboard despite me setting `autoCorrect` and other related input props to "off" (which seems to work for ios).

``` <input type="text" autoComplete="off" autoCapitalize="off" autoCorrect="off" spellCheck={false} /> ```

I'd prefer not creating a custom javascript keyboard so I'm feeling a little stuck. I've tried playing around with using a hidden password input that'll trigger the keyboard to appear while rendering text in a visible component styled to look like the input, but it's quite finicky and I'm worried this'll produce unexpected side effects. Does anyone have any insights on how to best approach this?

discuss

order

No comments yet.