mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
keep focused class
This commit is contained in:
parent
c80c369c42
commit
b79b41adcd
@ -26,7 +26,10 @@ export class RoomGridView extends TemplateView {
|
||||
children.push(t.div({
|
||||
onClick: () => 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}`
|
||||
},t.mapView(vm => vm.roomViewModelAt(x, y), roomVM => {
|
||||
if (roomVM) {
|
||||
|
Loading…
Reference in New Issue
Block a user