전략 직접입력값 평가오류

This commit is contained in:
Macbook
2026-06-17 23:17:17 +09:00
parent 40cae91d8d
commit 5236a6cd46
10 changed files with 88 additions and 40 deletions
@@ -18,6 +18,8 @@ interface Props {
allowDecimal?: boolean;
onFieldChange: (field: string) => void;
onCustomNumberChange: (n: number) => void;
/** 직접입력 모드 진입 — 현재 임계값을 K_ 스냅샷으로 즉시 반영 */
onDirectInputActivate?: () => void;
customOptionLabel?: string;
disabled?: boolean;
}
@@ -66,6 +68,7 @@ export default function ComboFieldSelect({
allowDecimal = false,
onFieldChange,
onCustomNumberChange,
onDirectInputActivate,
customOptionLabel,
disabled = false,
}: Props) {
@@ -94,6 +97,7 @@ export default function ComboFieldSelect({
if (raw === COMBO_FIELD_CUSTOM) {
if (canCustom) {
setMode('custom');
onDirectInputActivate?.();
setDraft(String(customNumber));
}
return;
@@ -168,7 +168,7 @@ export default function ConditionNodeSettings({
min={thresholdBounds.min}
max={thresholdBounds.max}
allowDecimal
onChange={v => onChange(setConditionThreshold(condition, 'right', v, def))}
onChange={v => onChange(setConditionThreshold(condition, 'right', v, def, { directInput: true }))}
/>
</label>
</>