fix(blindbox): 周末契约页输入框无法输入 — 非受控输入 + 全局 input 样式
- 创建/加入房间输入改为 ref + defaultValue,提交时从 DOM 取值,避免受控 state 导致无法打字 - globals: input/textarea 增加 user-select: text !important、touch-action: manipulation - Input 组件: cursor-text、touch-manipulation、min-w-0、autoComplete=off
This commit is contained in:
@@ -21,7 +21,8 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
|
||||
({ size = "md", variant = "default", className = "", ...rest }, ref) => (
|
||||
<input
|
||||
ref={ref}
|
||||
className={`w-full border-none text-sm outline-none ring-1 ring-border placeholder:text-dim focus:ring-2 ${sizeStyles[size]} ${variantStyles[variant]} ${className}`}
|
||||
className={`w-full min-w-0 border-none text-sm outline-none ring-1 ring-border placeholder:text-dim focus:ring-2 cursor-text touch-manipulation ${sizeStyles[size]} ${variantStyles[variant]} ${className}`}
|
||||
autoComplete="off"
|
||||
{...rest}
|
||||
/>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user