fix password autocomplete/correct/capitalize

pull/809/head
Cory LaViska 2022-06-24 08:36:51 -04:00
rodzic 153fe15ed3
commit de9da437f1
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -17,6 +17,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
- Fixed a bug where setting `valueAsDate` or `valueAsNumber` too early on `<sl-input>` would throw an error [#796](https://github.com/shoelace-style/shoelace/issues/796)
- Fixed a bug in `<sl-color-picker>` where empty values weren't properly supported [#797](https://github.com/shoelace-style/shoelace/issues/797)
- Fixed a bug in `<sl-color-picker>` where values were logged to the console when using the keyboard
- Fixed a bug in `<sl-input>` where password controls would try to autocorrect/autocomplete/autocapitalize when the password is visible
- Fixed label alignment in `<sl-checkbox>` and `<sl-radio>` so they align to the top of the control instead of the center when wrapping
- Updated the `fieldset` attribute so it reflects in `<sl-radio-group>`

Wyświetl plik

@ -380,9 +380,9 @@ export default class SlInput extends LitElement {
max=${ifDefined(this.max)}
step=${ifDefined(this.step)}
.value=${live(this.value)}
autocapitalize=${ifDefined(this.autocapitalize)}
autocomplete=${ifDefined(this.autocomplete)}
autocorrect=${ifDefined(this.autocorrect)}
autocapitalize=${ifDefined(this.type === 'password' ? 'off' : this.autocapitalize)}
autocomplete=${ifDefined(this.type === 'password' ? 'off' : this.autocomplete)}
autocorrect=${ifDefined(this.type === 'password' ? 'off' : this.autocorrect)}
?autofocus=${this.autofocus}
spellcheck=${ifDefined(this.spellcheck)}
pattern=${ifDefined(this.pattern)}