Skip to content

Commit

Permalink
fixes #666
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Feb 10, 2022
1 parent 68001b0 commit a57526a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
- Added `--spacing` CSS custom property to `<sl-divider>` [#664](https://github.com/shoelace-style/shoelace/pull/664)
- Fixed a bug that caused `<sl-progress-ring>` to render the wrong size when `--track-width` was increased [#656](https://github.com/shoelace-style/shoelace/issues/656)
- Fixed a bug that allowed `<sl-details>` to open and close when disabled using a screen reader [#658](https://github.com/shoelace-style/shoelace/issues/658)
- Fixed a bug in the FormData event polyfill that threw an error in some environments [#666](https://github.com/shoelace-style/shoelace/issues/666)
- Implemented stricter linting to improve consistency and reduce errors, which resulted in many small refactors throughout the codebase [#647](https://github.com/shoelace-style/shoelace/pull/647)
- Improved accessibility of `<sl-dialog>` and `<sl-drawer>` by making the title an `<h2>` and adding a label to the close button
- Improved search results in the documentation
- Refactored `<sl-format-byte>` to use `Intl.NumberFormat` so it supports localization
- Refactored themes so utility styles are no longer injected as `<style>` elements to support stricter CSP rules [#571](https://github.com/shoelace-style/shoelace/issues/571)
- Restored the nicer animation on `<sl-spinner>` and verified it works in Safari
- Updated Feature icon example to use Lucide
- Updated Feather icon example to use Lucide [#657](https://github.com/shoelace-style/shoelace/issues/657)
- Updated minimum Node version to 14.17
- Updated Lit to 2.1.2
- Updated to Bootstrap Icons to 1.8.0
Expand Down
6 changes: 5 additions & 1 deletion src/internal/formdata-event-polyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,8 @@ function polyfillFormData() {
});
}

polyfillFormData();
if (document.readyState === 'complete') {
polyfillFormData();
} else {
window.addEventListener('DOMContentLoaded', () => polyfillFormData());
}

0 comments on commit a57526a

Please sign in to comment.