我已经有 toggleControl 设置,当激活前端的手风琴时会显示切换内容,但问题是它会影响后端。
<div id="cklph-toggle-main" className="border border-gray-200" style={heroWrapperStyle} >
<div className="absolute right-0 top-0 px-4 py-4 mt-1 flex items-center toggle-btn">
<Dashicon
icon={open ? "insert" : "remove"}
className="cursor-pointer"
onClick={() => setAttributes({open: !open})}
/>
</div> ``` s