Add spellcheck prop

pull/261/head
Cory LaViska 2020-10-02 15:43:48 -04:00
rodzic fe1be1c155
commit 9ce1f9b042
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -3,6 +3,7 @@
## Next
- Added support for dropdowns and non-icon elements to `sl-input`
- Added `spellcheck` prop to `sl-input`
- Fixed a bug where `sl-progress-ring` rendered incorrectly when zoomed in Safari [#227](https://github.com/shoelace-style/shoelace/issues/227)
- Fixed a bug where tabbing into slotted elements closes `sl-dropdown` when used in a shadow root [#223](https://github.com/shoelace-style/shoelace/issues/223)

Wyświetl plik

@ -100,6 +100,9 @@ export class Input {
/** The input's autofocus attribute. */
@Prop() autofocus: boolean;
/** Enables spell checking on the input. */
@Prop() spellcheck: boolean;
/**
* This will be true when the control is in an invalid state. Validity is determined by props such as `type`,
* `required`, `minlength`, `maxlength`, and `pattern` using the browser's constraint validation API.
@ -307,6 +310,7 @@ export class Input {
autoComplete={this.autocomplete}
autoCorrect={this.autocorrect}
autoFocus={this.autofocus}
spellcheck={this.spellcheck}
pattern={this.pattern}
required={this.required}
inputMode={this.inputmode}