Every line of 'disable modal close on background click' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
88 onClickClose() { 89 this.trigger('cancel'); 90 91 this.close(); 92 }
6 export async function clickOnCloseModalButton( modalClassName ) { 7 let closeButtonClassName = 8 '.components-modal__header .components-button'; 9 10 if ( modalClassName ) { 11 closeButtonClassName = `${ modalClassName } ${ closeButtonClassName }`; 12 } 13 14 const closeButton = await page.$( closeButtonClassName ); 15 16 if ( closeButton ) { 17 await page.click( closeButtonClassName ); 18 } 19 }
98 onClick() { 99 if (this.props.onRequestClose) { 100 this.props.onRequestClose(); 101 } 102 }
22 function onBodyClick(e: MouseEvent) { 23 if (e.target) { 24 onBodySelect(e.target as Element); 25 } 26 }
89 __closeClick() { 90 this.close(); 91 }
208 _handleModalClick() { 209 if(this.opened) { 210 this.close(); 211 } 212 }
1030 function getButtonClose(modalElement: HTMLElement): HTMLButtonElement { 1031 // For normal modal only 1032 return modalElement.querySelector('.ant-modal-close') as HTMLButtonElement; 1033 }
927 _setCloseButtons() { 928 this._activeModalCloseButtons = dom.findAll( 929 `${this._activeModalSelector} [${Selectors$3.DATA_CLOSE}]` 930 ); 931 }
129 private preventClosing(event: MouseEvent) { 130 event.stopPropagation(); 131 }
129 function closeModal(){ 130 $(".tpllck_search").removeClass("active").addClass("inactive"); 131 }