mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
ignore clicking on root
This commit is contained in:
parent
7903ae0001
commit
80eac6e48d
@ -60,6 +60,9 @@ export default class ListView {
|
||||
}
|
||||
|
||||
_onClick(event) {
|
||||
if (event.target === this._root) {
|
||||
return;
|
||||
}
|
||||
let childNode = event.target;
|
||||
while (childNode.parentNode !== this._root) {
|
||||
childNode = childNode.parentNode;
|
||||
|
Loading…
Reference in New Issue
Block a user