Skip to content

Commit

Permalink
Merge pull request #1178 from Codeinwp/bugfix/1175
Browse files Browse the repository at this point in the history
Fixed chart overlapping issue with the Gutenberg editor
  • Loading branch information
vytisbulkevicius authored Aug 9, 2024
2 parents b94b179 + 5dec660 commit 2a84aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/Visualizer/Gutenberg/build/block.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion classes/Visualizer/Gutenberg/src/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ class Editor extends Component {
window.parent.addEventListener( 'message', ( event ) => {
if ( 'visualizer:mediaframe:close' === event.data ) {
createChartPopup.close();
} else if ( event.data.chartID ) {
} else if ( event.data.chartID && null === this.state.chart ) {
const chartID = parseInt( event.data.chartID, 10 );
this.getChart( chartID );
}
Expand Down

0 comments on commit 2a84aa8

Please sign in to comment.