Skip to content

Commit

Permalink
fix(select): fix theme change event name for listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Sisha0 committed Jul 14, 2022
1 parent c6f9b79 commit 2b19b39
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/settings/select-setting/select-setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class UIPSelectSetting extends UIPSetting {
this.select.remove(this.settingOptions.indexOf(UIPSelectSetting.inconsistentValue));
}

@listen({event: 'change', target: '.uip-root'})
@listen({event: 'uip:configchange', target: '.uip-root'})
protected onRootThemeChange(e: CustomEvent): void {
if (e.detail.attribute !== 'dark-theme') return;
let dropdownClass = UIPSelectSetting.dropdownClass;
Expand Down

0 comments on commit 2b19b39

Please sign in to comment.