Skip to content

Commit

Permalink
chore: Use updated() method to handle setting preference and shiny …
Browse files Browse the repository at this point in the history
…input updates
  • Loading branch information
gadenbuie committed Sep 6, 2023
1 parent f9111b3 commit ff5d96d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions inst/components/dist/webComponents/webComponents.js

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

4 changes: 2 additions & 2 deletions inst/components/dist/webComponents/webComponents.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/components/dist/webComponents/webComponents.min.js

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

4 changes: 2 additions & 2 deletions inst/components/dist/webComponents/webComponents.min.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions srcts/src/components/darkModeSwitch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ export class DarkModeSwitch extends BslibElement {
onClick(e: MouseEvent): void {
e.stopPropagation();
this.themeValue = this.themeValue === "light" ? "dark" : "light";
this.setPreference();
this.onChangeCallback(true);
}

updated(changedProperties: Map<string, any>): void {
Expand Down

0 comments on commit ff5d96d

Please sign in to comment.