feat: proper click handling when closing color picker

This commit is contained in:
David Xu
2025-03-16 15:54:00 -07:00
parent a17f849acd
commit c7141b623c
+4 -1
View File
@@ -26,7 +26,10 @@ const ColorPicker = ({
<div className='flex justify-between items-center'>
<span className='text-sm font-semibold text-gray-800'>Set edge color</span>
<button
onClick={onClose}
onClick={(e) => {
e.stopPropagation()
onClose()
}}
className='text-sm bg-slate-800 hover:bg-slate-900 text-slate-100 py-1 px-2 rounded-md'
>
Done