260727_02_ENH: 통화중 이동 최대한 막기

This commit is contained in:
2026-07-27 17:13:58 +09:00
parent 157ba6155d
commit ce5a402253
5 changed files with 82 additions and 37 deletions

View File

@@ -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) => {