bfg-common 1.3.326 → 1.3.327

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.
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div
3
+ :id="elementId"
3
4
  class="context-popup"
4
5
  :style="{
5
6
  top: currentContextMenuY,
@@ -32,6 +33,8 @@ const selectItem = (item: UI_I_ContextMenuItem): void => {
32
33
  emits('select-item', item)
33
34
  }
34
35
 
36
+ const elementId = ref<string>(`context-${useUniqueId()}`)
37
+
35
38
  const currentContextMenuY = ref<string>('')
36
39
  const currentContextMenuX = ref<string>('')
37
40
  const setCurrentPositionsPopup = (): void => {
@@ -39,7 +42,7 @@ const setCurrentPositionsPopup = (): void => {
39
42
  const contextMenuX = props.contextMenu.x
40
43
 
41
44
  const contextWrap: HTMLElement | null =
42
- document.querySelector('.context-wrap')
45
+ document.querySelector(`#${elementId.value} .context-wrap`)
43
46
  const contextW = contextWrap?.offsetWidth || 0
44
47
  const contextH = contextWrap?.offsetHeight || 0
45
48
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.326",
4
+ "version": "1.3.327",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",