KamoCRM

Use ref for memberPanelOpen in openChat to prevent stale closure

Fixkamo-internal
ส่งแล้ว
11 มีนาคม 2569 เวลา 00:21 UTC
ผู้เขียน
kamo
ตั้งค่า
b380a54

When a user opens the member panel, clicks a member to chat, then closes the panel before the async session API call returns, the chat window was positioned with a 500px offset as if the panel were still open. This happened because openChat captured memberPanelOpen via closure at call time. Using a ref ensures the current panel state is read after the await.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทั้งหมดของมันมาถึง ในที่ทํางานของคุณเอง เริ่มที่แผนฟรี และอ่านหน้านี้อีกครั้งในเดือน.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์