Add spellcheck prop; fixes #233

pull/237/head
Cory LaViska 2020-10-02 15:46:58 -04:00
rodzic 84031833f0
commit dce001ecaf
3 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -9,6 +9,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
## 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)
- Fixed a bug where scroll anchoring caused undesirable scrolling when `sl-details` are grouped

8
src/components.d.ts vendored
Wyświetl plik

@ -614,6 +614,10 @@ export namespace Components {
* The input's size.
*/
"size": 'small' | 'medium' | 'large';
/**
* Enables spell checking on the input.
*/
"spellcheck": boolean;
/**
* The input's step attribute.
*/
@ -2065,6 +2069,10 @@ declare namespace LocalJSX {
* The input's size.
*/
"size"?: 'small' | 'medium' | 'large';
/**
* Enables spell checking on the input.
*/
"spellcheck"?: boolean;
/**
* The input's step attribute.
*/

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}