Skip to content
代码片段 群组 项目
未验证 提交 936cc4a6 编辑于 作者: Denys Mishunov's avatar Denys Mishunov
浏览文件

Fixed clicking global Duo Chat button after dismissed callout

Changelog: fixed
EE: true
上级 8e6b383f
No related branches found
No related tags found
无相关合并请求
......@@ -43,7 +43,9 @@ export default {
},
methods: {
handleButtonClick() {
this.$refs.popoverLink.$emit('click');
if (this.$refs.popoverLink) {
this.$refs.popoverLink.$emit('click');
}
},
stopListeningToPopover() {
if (this.popoverTarget) {
......
......@@ -146,5 +146,10 @@ describe('DuoChatCallout', () => {
findFirstTargetElement().click();
expect(userCalloutDismissSpy).toHaveBeenCalledTimes(1);
});
it('does not fail if the chat button is clicked after callout was dismissed', () => {
createComponent({ shouldShowCallout: false });
expect(() => findFirstTargetElement().click()).not.toThrow();
});
});
});
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册