diff --git a/packages/webawesome/docs/docs/components/include.md b/packages/webawesome/docs/docs/components/include.md index 67b2229b2..7341c0ac3 100644 --- a/packages/webawesome/docs/docs/components/include.md +++ b/packages/webawesome/docs/docs/components/include.md @@ -19,7 +19,7 @@ The included content will be inserted into the `` element's default When an include file loads successfully, the `wa-load` event will be emitted. You can listen for this event to add custom loading logic to your includes. -If the request fails, the `wa-error` event will be emitted. In this case, `event.detail.status` will contain the resulting HTTP status code of the request, e.g. 404 (not found). +If the request fails, the `wa-include-error` event will be emitted. In this case, `event.detail.status` will contain the resulting HTTP status code of the request, e.g. 404 (not found). ```html @@ -33,7 +33,7 @@ If the request fails, the `wa-error` event will be emitted. In this case, `event } }); - include.addEventListener('wa-error', event => { + include.addEventListener('wa-include-error', event => { if (event.eventPhase === Event.AT_TARGET) { console.log('Error', event.detail.status); } diff --git a/packages/webawesome/docs/docs/resources/changelog.md b/packages/webawesome/docs/docs/resources/changelog.md index 48a1e8e55..49e760c3f 100644 --- a/packages/webawesome/docs/docs/resources/changelog.md +++ b/packages/webawesome/docs/docs/resources/changelog.md @@ -40,6 +40,7 @@ Components with the Experimental badge sh - Fixed a bug that caused the required `*` in form labels to have incorrect spacing in `` and `` [issue:1472] - Fixed a bug in `` and `` that caused the component to prematurely hide when certain child elements are used [pr:1636] - Fixed a bug in `` and `` that prevented dots and other valid ID characters from being used [issue:1648] +- Fixed incorrect docs for the `wa-include-error` event which is dispatched by `` [issue:1663] - Improved autofill styles in `` so they span the entire width of the visual input [issue:1439] - Improved [text utilities](/docs/utilities/text/) so that each size modifier always exactly matches the applied font size [pr:1602] - Improved Native Styles to use the `--wa-font-weight-code` design token diff --git a/packages/webawesome/src/components/include/include.ts b/packages/webawesome/src/components/include/include.ts index 24f0418c5..267047801 100644 --- a/packages/webawesome/src/components/include/include.ts +++ b/packages/webawesome/src/components/include/include.ts @@ -14,7 +14,7 @@ import { requestInclude } from './request.js'; * @since 2.0 * * @event wa-load - Emitted when the included file is loaded. - * @event {{ status: number }} wa-error - Emitted when the included file fails to load due to an error. + * @event {{ status: number }} wa-include-error - Emitted when the included file fails to load due to an error. */ @customElement('wa-include') export default class WaInclude extends WebAwesomeElement {