Skip to content

Commit

Permalink
Trigger input change if used inside wp customizer
Browse files Browse the repository at this point in the history
  • Loading branch information
veno 15 authored and veno 15 committed Apr 6, 2018
1 parent dcb1215 commit 1f81880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/wp-color-picker-alpha.min.js 100644 → 100755

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

2 changes: 2 additions & 0 deletions src/wp-color-picker-alpha.js 100644 → 100755
Expand Up @@ -320,6 +320,7 @@
if ( $.isFunction( self.options.clear ) )
self.options.clear.call( this, event );

self.element.trigger( 'change' );
} else if ( $( this ).hasClass( 'wp-picker-default' ) ) {
self.element.val( self.options.defaultColor ).change();
}
Expand Down Expand Up @@ -455,6 +456,7 @@
self._change();
} );
}
el.trigger( 'change' );
},
_addInputListeners: function( input ) {
var self = this,
Expand Down

0 comments on commit 1f81880

Please sign in to comment.