@@ -92,9 +92,9 @@ class AuthorSelectElement extends AuthorBaseElement(HTMLElement) {
9292
9393 this . UTIL . definePrivateMethods ( {
9494 addOpenListeners : ( ) => {
95- document . body . addEventListener ( 'mousedown' , this . PRIVATE . bodyMousedownHandler )
96- document . body . addEventListener ( 'touchcancel' , this . PRIVATE . bodyMousedownHandler )
97- document . body . addEventListener ( 'touchend' , this . PRIVATE . bodyMousedownHandler )
95+ document . addEventListener ( 'mousedown' , this . PRIVATE . bodyMousedownHandler )
96+ document . addEventListener ( 'touchcancel' , this . PRIVATE . bodyMousedownHandler )
97+ document . addEventListener ( 'touchend' , this . PRIVATE . bodyMousedownHandler )
9898 } ,
9999
100100 blurHandler : evt => this . off ( 'keydown' , this . PRIVATE . keydownHandler ) ,
@@ -195,9 +195,9 @@ class AuthorSelectElement extends AuthorBaseElement(HTMLElement) {
195195 } ,
196196
197197 removeOpenListeners : ( ) => {
198- document . body . removeEventListener ( 'mousedown' , this . PRIVATE . bodyMousedownHandler )
199- document . body . removeEventListener ( 'touchcancel' , this . PRIVATE . bodyMousedownHandler )
200- document . body . removeEventListener ( 'touchend' , this . PRIVATE . bodyMousedownHandler )
198+ document . removeEventListener ( 'mousedown' , this . PRIVATE . bodyMousedownHandler )
199+ document . removeEventListener ( 'touchcancel' , this . PRIVATE . bodyMousedownHandler )
200+ document . removeEventListener ( 'touchend' , this . PRIVATE . bodyMousedownHandler )
201201 } ,
202202
203203 stateChangeHandler : evt => {
0 commit comments