100011797 3 лет назад
Родитель
Сommit
c473060ed5
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/components/FIndicators/index.tsx

+ 4 - 4
src/components/FIndicators/index.tsx

@@ -120,10 +120,10 @@ const FIndicators = (props: Props) => {
         <>
           <Input
             value={value?.value ? value?.value[0] : ''}
-            onChange={(val) => {
+            onChange={(e) => {
               onChange({
                 ...value,
-                value: [val, value?.value && value?.value[1]],
+                value: [e.target.value, value?.value && value?.value[1]],
               });
             }}
           />
@@ -132,10 +132,10 @@ const FIndicators = (props: Props) => {
               ~
               <Input
                 value={value?.value ? value?.value[1] : ''}
-                onChange={(val) => {
+                onChange={(e) => {
                   onChange({
                     ...value,
-                    value: [value?.value && value?.value[0], val],
+                    value: [value?.value && value?.value[0], e.target.value],
                   });
                 }}
               />