Skip to content

Commit

Permalink
Merge pull request #2101 from JedWatson/fix-autocomplete-shenannigans
Browse files Browse the repository at this point in the history
Disable some browser-specific behaviours that break the input
  • Loading branch information
JedWatson authored Oct 26, 2017
2 parents 97af36a + c10c0b5 commit f057218
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions less/control.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
.Select {
position: relative;

// disable some browser-specific behaviours that break the input
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
display: none !important;
}
input::-ms-clear {
display: none !important;
}
input::-ms-reveal {
display: none !important;
}

// preferred box model
&,
& div,
Expand Down
12 changes: 12 additions & 0 deletions scss/control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
.Select {
position: relative;

// disable some browser-specific behaviours that break the input
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
display: none !important;
}
input::-ms-clear {
display: none !important;
}
input::-ms-reveal {
display: none !important;
}

// preferred box model
&,
& div,
Expand Down

0 comments on commit f057218

Please sign in to comment.