Closed BertrandGouny closed 4 years ago
Please use the complete issue form and describe your problem better. If it helps, you can also use screencasts.
@MrGeneration reading the 2 lines of code quoted should be enough for any javascript developer to see that document.querySelector("." + this.options.buttonClass)
might be null so document.querySelector("." + this.options.buttonClass).classList.add(this.inactiveClass);
give the error
not sure why you need a screencast for that
Again: Please do complete the issue template, as it is incomplete. I will have to close this if it's not completed.
@BertrandGouny developer here. Knowing which line causes the crash won't tell me how to reproduce the bug.
@mantas as stated in "Steps to reproduce the behavior" you can reproduce the bug by taking back znuny-no-jquery.html example file and removing the dom element with class="open-zammad-chat"
Closing as this issue seems to be fixed along the way in develop
branch.
thanks :)
Infos:
Expected behavior:
Chat should work if no open button element exists ?
Actual behavior:
Problematic line : https://github.com/zammad/zammad/blob/2de61bd4c53df469df5838173cc0147447364418/public/assets/chat/chat-no-jquery.js#L745
Steps to reproduce the behavior:
remove that line : https://github.com/zammad/zammad/blob/2de61bd4c53df469df5838173cc0147447364418/public/assets/chat/znuny-no-jquery.html#L113