@mendylanda/ui 0.4.3-dev.68.e3417befc4d5 → 0.4.3-dev.69.b44a9721f450

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.
@@ -65,6 +65,11 @@ export function FilterMenuPanel({ sections, selectedId, onSelect, onClose, ancho
65
65
  });
66
66
  useEffect(() => {
67
67
  const frame = requestAnimationFrame(() => {
68
+ const active = document.activeElement;
69
+ // A slow frame must not reset navigation or an editor the user already entered.
70
+ if (active !== content.current &&
71
+ (content.current?.contains(active) || editor.current?.contains(active)))
72
+ return;
68
73
  const first = rows.current.get(initialSelection.current ?? "") ??
69
74
  [...rows.current.values()].find((button) => !button.disabled);
70
75
  (first ?? content.current)?.focus();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mendylanda/ui",
3
- "version": "0.4.3-dev.68.e3417befc4d5",
3
+ "version": "0.4.3-dev.69.b44a9721f450",
4
4
  "description": "Mendy Landa's reusable React components. Tables, filters, and sheets with shared interactions and customizable UI.",
5
5
  "homepage": "https://ui.mendylanda.com",
6
6
  "license": "MIT",
@@ -126,5 +126,5 @@
126
126
  "build": "tsc -p tsconfig.build.json && node scripts/build-css.mjs",
127
127
  "typecheck": "tsc -p tsconfig.build.json --noEmit"
128
128
  },
129
- "gitHead": "e3417befc4d534f2cb6ddb33c3d31b6322c34147"
129
+ "gitHead": "b44a9721f450b4f8ce6e0bb3dc7e9e76452d2649"
130
130
  }