svelte-tv 1.0.6 → 1.0.7

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.
@@ -887,6 +887,9 @@ export class ElementNode {
887
887
  * A truthy value enables autofocus, otherwise disables it.
888
888
  */
889
889
  set autofocus(val) {
890
+ if (val === this._autofocus) {
891
+ return;
892
+ }
890
893
  this._autofocus = val;
891
894
  // Defer setFocus so children render first (forwardFocus needs them).
892
895
  // The post-mutation focus phase calls setFocus on this element.
@@ -894,6 +897,9 @@ export class ElementNode {
894
897
  deferredFocusElement = this;
895
898
  schedulePostMutation();
896
899
  }
900
+ else if (deferredFocusElement === this) {
901
+ deferredFocusElement = null;
902
+ }
897
903
  }
898
904
  get autofocus() {
899
905
  return this._autofocus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-tv",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Svelte speed for every screen 🚀✨",
5
5
  "type": "module",
6
6
  "exports": {