This commit is contained in:
konnorrogers
2024-03-27 14:34:12 -04:00
parent 967ffd6e39
commit a77b9a92cd
3 changed files with 3 additions and 3 deletions

View File

@@ -156,4 +156,4 @@ Textareas will automatically resize to expand to fit their content when `resize`
import WaTextarea from '@shoelace-style/shoelace/dist/react/textarea';
const App = () => <WaTextarea resize="auto" />;
```
```

View File

@@ -1,4 +1,4 @@
import { aTimeout, expect, fixture } from '@open-wc/testing';
import { expect, fixture } from '@open-wc/testing';
import type { WebAwesomeFormControl } from '../webawesome-element.js';
type CreateControlFn = () => Promise<WebAwesomeFormControl>;

View File

@@ -393,7 +393,7 @@ export class WebAwesomeFormAssociated
/**
* Called when the browser is trying to restore elements state to state in which case reason is “restore”, or when the browser is trying to fulfill autofill on behalf of user in which case reason is “autocomplete”. In the case of “restore”, state is a string, File, or FormData object previously set as the second argument to setFormValue.
*/
formStateRestoreCallback(state: string | File | FormData | null, _reason: string) {
formStateRestoreCallback(state: string | File | FormData | null) {
this.value = state;
this.setValidity({});