forked from mystiq/hydrogen-web
ignore clicking on root
This commit is contained in:
parent
7903ae0001
commit
80eac6e48d
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ export default class ListView {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onClick(event) {
|
_onClick(event) {
|
||||||
|
if (event.target === this._root) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let childNode = event.target;
|
let childNode = event.target;
|
||||||
while (childNode.parentNode !== this._root) {
|
while (childNode.parentNode !== this._root) {
|
||||||
childNode = childNode.parentNode;
|
childNode = childNode.parentNode;
|
||||||
|
|
Loading…
Reference in a new issue