From 5d87d2c5d227e9be7567a7cb0cdea3b5eb29a0bd Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Mon, 3 Nov 2014 21:48:22 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/customize-base.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/js/customize-base.js b/src/wp-includes/js/customize-base.js index 6ea282292a..5ffa924564 100644 --- a/src/wp-includes/js/customize-base.js +++ b/src/wp-includes/js/customize-base.js @@ -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'; }