forked from mystiq/hydrogen-web
keep focused class
This commit is contained in:
parent
c80c369c42
commit
b79b41adcd
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,10 @@ export class RoomGridView extends TemplateView {
|
||||||
children.push(t.div({
|
children.push(t.div({
|
||||||
onClick: () => vm.setFocusAt(x, y),
|
onClick: () => vm.setFocusAt(x, y),
|
||||||
onFocusin: () => vm.setFocusAt(x, y),
|
onFocusin: () => vm.setFocusAt(x, y),
|
||||||
className: "container",
|
className: {
|
||||||
|
"container": true,
|
||||||
|
"focused": vm => vm.isFocusAt(x, y)
|
||||||
|
},
|
||||||
style: `--column: ${x + 1}; --row: ${y + 1}`
|
style: `--column: ${x + 1}; --row: ${y + 1}`
|
||||||
},t.mapView(vm => vm.roomViewModelAt(x, y), roomVM => {
|
},t.mapView(vm => vm.roomViewModelAt(x, y), roomVM => {
|
||||||
if (roomVM) {
|
if (roomVM) {
|
||||||
|
|
Loading…
Reference in a new issue