Răsfoiți Sursa

🔧 fix: 修复取消原因对话框按钮无响应问题

- 为取消原因按钮添加onTap事件处理,兼容Taro小程序环境
- 添加select-none样式,防止文本选择影响点击
- 保持原有的onClick事件兼容性

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 1 lună în urmă
părinte
comite
986e14fbee
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      mini/src/components/common/CancelReasonDialog/index.tsx

+ 3 - 1
mini/src/components/common/CancelReasonDialog/index.tsx

@@ -120,12 +120,14 @@ export default function CancelReasonDialog({
               <div
                 key={reasonText}
                 data-testid={`cancel-reason-${reasonText}`}
-                className={`px-3 py-2 rounded border cursor-pointer transition-colors ${
+                className={`px-3 py-2 rounded border cursor-pointer transition-colors select-none ${
                   selectedReason === reasonText
                     ? 'border-primary bg-primary/10'
                     : 'border-gray-300 bg-white hover:bg-gray-50'
                 }`}
                 onClick={() => handleReasonSelect(reasonText)}
+                // 添加Taro小程序兼容的点击事件处理
+                onTap={() => handleReasonSelect(reasonText)}
               >
                 <span
                   className={`text-sm ${