Skip to content

Commit

Permalink
Revert tab/edit.js to commit 09f6f00
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdkei authored and mtdkei committed Jan 29, 2025
1 parent a4863c1 commit fc0d1bc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/blocks/_pro/tab/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,6 @@ export default function TabEdit(props) {

const liOnClick = (e) => {
if (childBlocks) {
const iframe = document.querySelector(
'.block-editor-iframe__container iframe'
);
const iframeDocument = iframe?.contentWindow?.document;

const vkTab = e.target.closest('.vk_tab');
const vkTabLabels = vkTab.querySelector('.vk_tab_labels');

Expand Down Expand Up @@ -255,9 +250,7 @@ export default function TabEdit(props) {
);
newActiveLabel.style.removeProperty('background-color');

const activeTabBody = iframeDocument.querySelector(
`#block-${TabId}`
);
const activeTabBody = document.querySelector(`#block-${TabId}`);
const activeTabBodyStyle = window.getComputedStyle(activeTabBody);
if (
!newActiveLabel
Expand Down

0 comments on commit fc0d1bc

Please sign in to comment.