mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
Fix: Elements select
This commit is contained in:
@@ -17,13 +17,14 @@ export default class Select extends util.Emitter
|
||||
}
|
||||
enable()
|
||||
{
|
||||
document.body.addEventListener('click', this._listener, true);
|
||||
this.disable();
|
||||
document.body.addEventListener('touchstart', this._listener, true);
|
||||
|
||||
return this;
|
||||
}
|
||||
disable()
|
||||
{
|
||||
document.body.removeEventListener('click', this._listener, true);
|
||||
document.body.removeEventListener('touchstart', this._listener, true);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user