전략 직접입력값 평가오류
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user