Skip to content

Commit

Permalink
fix: keep event listener for gv-cron-editor when disabled state change
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudAV committed Nov 14, 2022
1 parent fd67c6c commit a8b0bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/molecules/gv-cron-editor/gv-cron-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ export class GvCronEditor extends withResizeObserver(InputElement(LitElement)) {
// eslint-disable-next-line promise/param-names
await new Promise((r) => setTimeout(r, 0));

this.shadowRoot.querySelectorAll('gv-input, gv-date-picker, gv-checkbox, gv-select').forEach((element) => {
element.addEventListener(`${element.tagName.toLowerCase()}:input`, this._handleChange);
['gv-input', 'gv-date-picker', 'gv-checkbox', 'gv-select'].forEach((tagName) => {
this.shadowRoot.addEventListener(`${tagName}:input`, this._handleChange);
});
}

Expand Down

0 comments on commit a8b0bc3

Please sign in to comment.