Customizer: Bind `input` and `propertychange` events for range input types.
props voldemortensen, westonruter. fixes #30223. git-svn-id: https://develop.svn.wordpress.org/trunk@30219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0dcb810a91
commit
5d87d2c5d2
|
@ -426,10 +426,14 @@ window.wp = window.wp || {};
|
|||
|
||||
if ( this.element.is('input') ) {
|
||||
type = this.element.prop('type');
|
||||
if ( api.Element.synchronizer[ type ] )
|
||||
if ( api.Element.synchronizer[ type ] ) {
|
||||
synchronizer = api.Element.synchronizer[ type ];
|
||||
if ( 'text' === type || 'password' === type )
|
||||
}
|
||||
if ( 'text' === type || 'password' === type ) {
|
||||
this.events += ' keyup';
|
||||
} else if ( 'range' === type ) {
|
||||
this.events += ' input propertychange';
|
||||
}
|
||||
} else if ( this.element.is('textarea') ) {
|
||||
this.events += ' keyup';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue