Skip to content

Commit

Permalink
lower timeouts for color controls
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jul 18, 2017
1 parent 24dc746 commit c6c7278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controls/color/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ wp.customize.controlConstructor['kirki-color'] = wp.customize.Control.extend({
clear.click( function() {
control.setting.set( '' );
});
}, 500 );
}, 200 );

// Saves our settings to the WP API
picker.wpColorPicker({
Expand All @@ -42,7 +42,7 @@ wp.customize.controlConstructor['kirki-color'] = wp.customize.Control.extend({
// Small hack: the picker needs a small delay
setTimeout( function() {
control.setting.set( picker.val() );
}, 100 );
}, 20 );

}
});
Expand Down

0 comments on commit c6c7278

Please sign in to comment.