@wizishop/wizi-block 99.3.29 → 99.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10177,11 +10177,13 @@
10177
10177
  };
10178
10178
  StructureToolsComponent.prototype.copyId = function (event, id) {
10179
10179
  event.preventDefault();
10180
- document.addEventListener('copy', function (e) {
10180
+ var create_copy = function (e) {
10181
10181
  e.clipboardData.setData('text/plain', id);
10182
10182
  e.preventDefault();
10183
- document.removeEventListener('copy', null);
10184
- });
10183
+ };
10184
+ document.addEventListener('copy', create_copy);
10185
+ document.execCommand('copy');
10186
+ document.removeEventListener('copy', create_copy);
10185
10187
  };
10186
10188
  StructureToolsComponent.prototype.configThis = function (e) {
10187
10189
  e.preventDefault();