Yoast / yoast-components

Accessible React components by Yoast
GNU General Public License v3.0
21 stars 6 forks source link

Disable autocomplete browser functionality for Keyphrase fields #792

Closed moorscode closed 5 years ago

moorscode commented 5 years ago

Please give us a description of what happened.

When typing into the keyphrase field, I get suggestions from the browser from other keyphrases I've entered on other posts. This is because the field is identifiable thus making the browser believe it's desired to show related data.

As the keyphrase field is something that is intended to be unique, providing suggestions that have already been used is the opposite of what we want it to be used for.

Adding an autocomplete="off" to the field should fix this problem.

Please describe what you expected to happen and why.

Pressing the "down" arrow-key on the keyboard in the keyphrase field reveals the following suggestions on my local installation:

screen shot 2018-12-11 at 10 16 27

How can we reproduce this behavior?

  1. Enter keyphrases for several posts/pages
  2. Press the "down" arrow-key on a keyphrase field or start a keyphrase the same way as another keyphrase you've entered on the other posts/pages

Technical info