@lightningtv/core
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -28,3 +28,2 @@ import { createShader } from './lightningInit.js'; | ||
skipFocus?: boolean; | ||
autofocus?: boolean; | ||
flexItem?: boolean; | ||
@@ -82,2 +81,4 @@ flexOrder?: number; | ||
get hidden(): boolean; | ||
set autofocus(val: any); | ||
get autofocus(): any; | ||
requiresLayout(): true | ((this: ElementNode, target: ElementNode, child?: ElementNode, dimensions?: Dimensions) => boolean | void) | undefined; | ||
@@ -84,0 +85,0 @@ set updateLayoutOn(v: any); |
@@ -239,3 +239,3 @@ import { renderer, createShader } from './lightningInit.js'; | ||
else { | ||
this.autofocus = true; | ||
this._autofocus = true; | ||
} | ||
@@ -335,2 +335,9 @@ } | ||
} | ||
set autofocus(val) { | ||
this._autofocus = val ? true : false; | ||
this._autofocus && this.setFocus(); | ||
} | ||
get autofocus() { | ||
return this._autofocus; | ||
} | ||
requiresLayout() { | ||
@@ -538,3 +545,3 @@ return this.display === 'flex' || this.onBeforeLayout; | ||
} | ||
node.autofocus && node.setFocus(); | ||
node._autofocus && node.setFocus(); | ||
} | ||
@@ -541,0 +548,0 @@ } |
{ | ||
"name": "@lightningtv/core", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -172,3 +172,2 @@ import { renderer, createShader } from './lightningInit.js'; | ||
skipFocus?: boolean; | ||
autofocus?: boolean; | ||
flexItem?: boolean; | ||
@@ -385,3 +384,3 @@ flexOrder?: number; | ||
} else { | ||
this.autofocus = true; | ||
this._autofocus = true; | ||
} | ||
@@ -505,2 +504,11 @@ } | ||
set autofocus(val: any) { | ||
this._autofocus = val ? true : false; | ||
this._autofocus && this.setFocus(); | ||
} | ||
get autofocus() { | ||
return this._autofocus; | ||
} | ||
requiresLayout() { | ||
@@ -748,3 +756,3 @@ return this.display === 'flex' || this.onBeforeLayout; | ||
node.autofocus && node.setFocus(); | ||
node._autofocus && node.setFocus(); | ||
} | ||
@@ -751,0 +759,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
201280
3164