@heyramzi/ui 2.11.0 → 2.11.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyramzi/ui",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "description": "Svelte 5 UI for apps: primitives, effects and animations, plus work (tasks and docs), charts, slides, an editor, onboarding and a canvas as subpaths.",
5
5
  "homepage": "https://ui.heyramzi.com",
6
6
  "license": "MIT",
@@ -203,7 +203,9 @@
203
203
  );
204
204
  }
205
205
 
206
+ // WHY: Chrome fires focusout from the read-state button as editing removes it, so only the input leaving counts.
206
207
  function onFocusOut(event: FocusEvent) {
208
+ if (event.target !== input) return;
207
209
  const next = event.relatedTarget as Node | null;
208
210
  if (editing && !(next && root?.contains(next))) stop();
209
211
  }