@lightningjs/blits 1.35.0 → 1.35.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.35.1
4
+
5
+ _24 Jul 2025_
6
+
7
+ - (Re) added next tick when setting focus to prevent any potential race conditions
8
+
3
9
  _22 Jul 2025_
4
10
 
5
11
  ## v1.35.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "1.35.0",
3
+ "version": "1.35.1",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.js",
6
6
  "exports": {
package/src/focus.js CHANGED
@@ -72,13 +72,10 @@ export default {
72
72
  }
73
73
 
74
74
  // and finally set focus to the leaf component
75
- if (this.hold === true) {
76
- setFocusTimeout = setTimeout(() => {
77
- setFocus(component, event)
78
- }, Settings.get('holdTimeout', DEFAULT_HOLD_TIMEOUT_MS))
79
- } else {
80
- setFocus(component, event)
81
- }
75
+ setFocusTimeout = setTimeout(
76
+ () => setFocus(component, event),
77
+ this.hold === true ? Settings.get('holdTimeout', DEFAULT_HOLD_TIMEOUT_MS) : 0
78
+ )
82
79
  },
83
80
  input(key, event) {
84
81
  if (state.navigating === true) return