Skip to content

Commit

Permalink
fix(events): update help text event and event docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 committed May 10, 2024
1 parent f168a8c commit 966f7bb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
9 changes: 5 additions & 4 deletions demo/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@

## Events

| Event | Type | Description |
|-------------------------|--------------------|--------------------------------------------------|
| `auroCombobox-ready` | `CustomEvent<any>` | Notifies that the component has finished initializing. |
| `auroCombobox-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
| Event | Type | Description |
|-----------------------------|--------------------|--------------------------------------------------|
| `auroCombobox-ready` | `CustomEvent<any>` | Notifies that the component has finished initializing. |
| `auroCombobox-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
| `auroFormElement-validated` | | Notifies that the component value(s) have been validated. |

## Slots

Expand Down
9 changes: 5 additions & 4 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@

## Events

| Event | Type | Description |
|-------------------------|--------------------|--------------------------------------------------|
| `auroCombobox-ready` | `CustomEvent<any>` | Notifies that the component has finished initializing. |
| `auroCombobox-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
| Event | Type | Description |
|-----------------------------|--------------------|--------------------------------------------------|
| `auroCombobox-ready` | `CustomEvent<any>` | Notifies that the component has finished initializing. |
| `auroCombobox-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
| `auroFormElement-validated` | | Notifies that the component value(s) have been validated. |

## Slots

Expand Down
7 changes: 4 additions & 3 deletions src/auro-combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ import styleCss from "./style-css.js";
* @slot - Default slot for the menu content.
* @slot label - Defines the content of the label.
* @slot helpText - Defines the content of the helpText.
* @event auroCombobox-ready - Notifies that the component has finished initializing.
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
* @fires auroCombobox-ready - Notifies that the component has finished initializing.
* @fires auroCombobox-valueSet - Notifies that the component has a new value set.
* @fires auroFormElement-validated - Notifies that the component value(s) have been validated.
*/

// build the component class
Expand Down Expand Up @@ -432,7 +433,7 @@ export class AuroCombobox extends LitElement {
}
});

this.input.addEventListener('auroInput-helpText', (evt) => {
this.input.addEventListener('auroFormElement-validated', (evt) => {
this.auroInputHelpText = evt.detail.message;
});
}
Expand Down

0 comments on commit 966f7bb

Please sign in to comment.