fix(docs): Inline Form Validation Docs throw error on top level await (#1522)

This commit is contained in:
Thomas Allmer
2023-08-16 20:59:21 +02:00
committed by GitHub
parent 9cb5ba7ac1
commit d8de7bcc51

View File

@@ -462,7 +462,7 @@ To disable the browser's error messages, you need to cancel the `sl-invalid` eve
<sl-button type="reset" variant="default">Reset</sl-button>
</form>
<script>
<script type="module">
const form = document.querySelector('.inline-validation');
const nameError = document.querySelector('#name-error');