无法选择页面上的组件 [英] Unable to select the components on a page

查看:114
本文介绍了无法选择页面上的组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想对页面中选定的组件执行部署。我注意到,我无法使用组件编辑栏中的小复选框来选择页面中显示的任何组件。

I want to perform a rollout only for the selected components in the page. I noticed that I am not able to select any of the components presented in the pages using the small checkbox in the component's edit bar.

我不确定为什么会这样。它们都是自定义组件,而不是OOTB组件。

I am not sure why this is happening. All of them are custom components and not OOTB ones.

任何对此的解决方案,请分享。

Any solutions to this, please share them.

推荐答案

I刚刚发现在EditBar.js中,与复选框关联的侦听器无法正常工作。如果未覆盖,可以在/libs/cq/ui/widgets/source/widgets/wcm/EditBar.js中找到以下位置。

I just discovered that in EditBar.js, the listener associated with the checkbox was not functioning. The following loc can be found at /libs/cq/ui/widgets/source/widgets/wcm/EditBar.js if not overlayed.

listeners: {
            check: function(cb, checked) {
                if (checked) {
                    CQ.WCM.select(editBar, true);
                } else {
                    CQ.WCM.deselect(editBar, true);
                }
            }
        }

当' check 事件已更改为 selectionChanged 。清除浏览器缓存,重新加载页面以查看更改。谢谢!

It worked when the 'check' event was changed to 'selectionChanged' . Clearing the browser cache, reload the page to see the changes. Thanks!

这篇关于无法选择页面上的组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆