Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
jorostoyanov committed Nov 13, 2023
2 parents 6859164 + 8126e11 commit dd9d967
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/fields/map/google-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class GoogleMap extends Component {

resizeObserver.observe( this.node.current );

this.cancelResizeObserver = resizeObserver.disconnect;
this.observer = resizeObserver;
}

/**
Expand Down Expand Up @@ -68,7 +68,7 @@ class GoogleMap extends Component {
* @return {void}
*/
componentWillUnmount() {
this.cancelResizeObserver();
this.observer.disconnect();

window.google.maps.event.clearInstanceListeners( this.map );
}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/fields/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class RichTextField extends Component {

resizeObserver.observe( this.node.current );

this.cancelObserver = resizeObserver.disconnect;
this.observer = resizeObserver;
}
}

Expand All @@ -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();
Expand Down

0 comments on commit dd9d967

Please sign in to comment.