Skip to content

Commit

Permalink
fix: remove kirki JS setting default color (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin authored Nov 7, 2023
1 parent 56fa600 commit 3c9a372
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions assets/source/3.0/js/admin/customizerErrorHandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ export default (() => {
console.log("Settings: ", wp.customize.settings);
Object.keys(controls).forEach(key => {
const control = controls[key];
const setting = control?.params;

if (setting.hasOwnProperty('type') && setting.type == "kirki-react-colorful" && setting.hasOwnProperty('value') && setting.value == "") {
control.setting.set('#0000000a');
}

if (control.setting) {
control.setting.bind('error', (message: any) => {
Expand Down

0 comments on commit 3c9a372

Please sign in to comment.