260727_02_ENH: 통화중 이동 최대한 막기
This commit is contained in:
@@ -113,18 +113,6 @@ const ListContactInfoPanel = ({
|
||||
const isDialing = ctiCallPhase === 'dialing'
|
||||
const isOnCall = ctiCallPhase === 'active'
|
||||
|
||||
useEffect(() => {
|
||||
if (!isOnCall) return
|
||||
|
||||
const handleBeforeUnload = (event: BeforeUnloadEvent) => {
|
||||
event.preventDefault()
|
||||
event.returnValue = true
|
||||
}
|
||||
|
||||
window.addEventListener('beforeunload', handleBeforeUnload)
|
||||
return () => window.removeEventListener('beforeunload', handleBeforeUnload)
|
||||
}, [isOnCall])
|
||||
|
||||
const visibleHeaders = listHeaders
|
||||
.filter((header) => isListFieldVisibleForContact(header))
|
||||
.sort((a, b) => {
|
||||
|
||||
Reference in New Issue
Block a user