在 Rally SDK 2 中,我制作了一个标签选择器,然后将其添加到容器中。它呈现正常,但是当用户点击下拉箭头时,控制台报告错误(Uncaught TypeError: Object # has no method 'getContextPath')并且标签选择器不允许用户选择标签(每隔一段时间,不过,它们已列出)。
this.tag_picker = Ext.create('Rally.ui.picker.TagPicker', {
width: 275,
fieldLabel: "Tags: ",
allowBlank: true,
minHeight: 100,
autoExpand: true
});
this.down('#big_box').add( this.tag_picker );
最佳答案
查询首选项键以确定是否应显示工具提示时存在错误,并且它尝试使用 Rally.getContextPath() 构建请求 URL。作为解决方法,您可以将 toolTipPreferenceKey 设置为未定义 (toolTipPreferenceKey: undefined) 以避免看到此错误。
关于javascript - Rally SDK 2 标签选择器是否有必填字段?对象没有方法 'getContextPath',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11148898/