diff --git a/config.php b/config.php index 47889757..be39ddab 100644 --- a/config.php +++ b/config.php @@ -4,7 +4,7 @@ # Define version constant if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) { - define( __NAMESPACE__ . '\VERSION', '3.6.1' ); + define( __NAMESPACE__ . '\VERSION', '3.6.2' ); } # Define root directory diff --git a/package.json b/package.json index f3f7e36a..c1ecea00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-fields", - "version": "3.6.1", + "version": "3.6.2", "description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.", "directories": { "test": "tests" diff --git a/packages/core/fields/map/google-map.js b/packages/core/fields/map/google-map.js index 2a2c9b24..5f113228 100644 --- a/packages/core/fields/map/google-map.js +++ b/packages/core/fields/map/google-map.js @@ -27,7 +27,7 @@ class GoogleMap extends Component { resizeObserver.observe( this.node.current ); - this.cancelResizeObserver = resizeObserver.disconnect; + this.observer = resizeObserver; } /** @@ -68,7 +68,7 @@ class GoogleMap extends Component { * @return {void} */ componentWillUnmount() { - this.cancelResizeObserver(); + this.observer.disconnect(); window.google.maps.event.clearInstanceListeners( this.map ); } diff --git a/packages/core/fields/rich-text/index.js b/packages/core/fields/rich-text/index.js index 70d74428..3097b083 100644 --- a/packages/core/fields/rich-text/index.js +++ b/packages/core/fields/rich-text/index.js @@ -48,7 +48,7 @@ class RichTextField extends Component { resizeObserver.observe( this.node.current ); - this.cancelObserver = resizeObserver.disconnect; + this.observer = resizeObserver; } } @@ -60,8 +60,8 @@ class RichTextField extends Component { componentWillUnmount() { clearTimeout( this.timer ); - if ( typeof this.cancelObserver !== 'undefined' ) { - this.cancelObserver(); + if ( typeof this.observer !== 'undefined' ) { + this.observer.disconnect(); } this.destroyEditor();