File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/primevue/src/popover Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 44 <div v-if =" visible" :ref =" containerRef" v-focustrap role =" dialog" :aria-modal =" visible" @click =" onOverlayClick" :class =" cx('root')" v-bind =" ptmi('root')" >
55 <slot v-if =" $slots.container" name =" container" :closeCallback =" hide" :keydownCallback =" (event) => onButtonKeydown(event)" ></slot >
66 <template v-else >
7- <div :class =" cx('content')" @click = " onContentClick " @ mousedown =" onContentClick" @keydown =" onContentKeydown" v-bind =" ptm('content')" >
7+ <div :class =" cx('content')" @mousedown =" onContentClick" @keydown =" onContentKeydown" v-bind =" ptm('content')" >
88 <slot ></slot >
99 </div >
1010 </template >
@@ -215,12 +215,12 @@ export default {
215215 this .selfClick = false ;
216216 };
217217
218- document .addEventListener (' click' , this .outsideClickListener );
218+ document .addEventListener (' click' , this .outsideClickListener , true );
219219 }
220220 },
221221 unbindOutsideClickListener () {
222222 if (this .outsideClickListener ) {
223- document .removeEventListener (' click' , this .outsideClickListener );
223+ document .removeEventListener (' click' , this .outsideClickListener , true );
224224 this .outsideClickListener = null ;
225225 this .selfClick = false ;
226226 }
You can’t perform that action at this time.
0 commit comments