Merge pull request #5577 from sboursen-scinote/sb_SCI-8626

Error at selecting one ZPL label template [SCI-8626]
This commit is contained in:
artoscinote 2023-06-09 10:29:24 +02:00 committed by GitHub
commit db0363416c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,10 @@
this.buttonOverflow = false;
this.$nextTick(() => {
if (!this.$el.getBoundingClientRect) return;
if (
!(this.$el.getBoundingClientRect &&
document.querySelector('.sn-action-toolbar__action:last-child'))
) return;
let containerRect = this.$el.getBoundingClientRect();
let lastActionRect = document.querySelector('.sn-action-toolbar__action:last-child').getBoundingClientRect();