@intechstudio/grid-uikit 1.20260916.1334 → 1.20260922.800

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.
@@ -95,7 +95,8 @@
95
95
  duration: tooltipDuration,
96
96
  buttons: tooltipButtons,
97
97
  triggerEvents:
98
- tooltipTriggerEvents ?? (tooltipButtons ? ["show-buttons", "hover"] : undefined),
98
+ tooltipTriggerEvents ??
99
+ (tooltipButtons ? ["show-buttons", "hover"] : undefined),
99
100
  }
100
101
  : undefined}
101
102
  class="icon-button"
@@ -37,6 +37,13 @@ export const contextTarget = (node, options) => {
37
37
  };
38
38
  node.addEventListener("contextmenu", (event) => handleContextMenu(event));
39
39
  return {
40
+ update(newOptions) {
41
+ // Without this, `options` stays frozen at whatever it was when this
42
+ // node first mounted - an unkeyed #each reusing this element across
43
+ // data updates would keep opening a menu built from stale data (e.g.
44
+ // an item's name before a rename).
45
+ options = newOptions;
46
+ },
40
47
  destroy() {
41
48
  node.removeEventListener("contextmenu", handleContextMenu);
42
49
  // Clean up the current context menu if the node is destroyed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intechstudio/grid-uikit",
3
- "version": "1.20260916.1334",
3
+ "version": "1.20260922.800",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/intechstudio/grid-uikit.git"