🐛 Add step values to numeric inputs (#124210)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Marco Liberati 2022-02-02 14:10:15 +01:00 committed by GitHub
parent f7d9b0dc87
commit d7daf41798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 0 deletions

View file

@ -250,6 +250,7 @@ export const dateHistogramOperation: OperationDefinition<
};
setInterval(newInterval);
}}
step={1}
/>
</EuiFlexItem>
<EuiFlexItem>

View file

@ -134,6 +134,7 @@ export const RangePopover = ({
compressed
placeholder={FROM_PLACEHOLDER}
isInvalid={!isValidRange(tempRange)}
step={1}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
@ -164,6 +165,7 @@ export const RangePopover = ({
onSubmit();
}
}}
step={1}
/>
</EuiFlexItem>
</EuiFlexGroup>

View file

@ -215,6 +215,7 @@ export const staticValueOperation: OperationDefinition<
compressed
value={inputValue ?? ''}
onChange={onChangeHandler}
step="any"
/>
</div>
);

View file

@ -212,6 +212,7 @@ export function ColorRangeItem({
index: index + 1,
},
})}
step="any"
/>
</EuiFlexItem>
{ActionButton ? (

View file

@ -170,6 +170,7 @@ const FloatingColumnsInput = ({
onChange={(e) => {
handleInputChange(Number(e.target.value));
}}
step={1}
/>
);
};

View file

@ -140,6 +140,7 @@ export const MaxLinesInput = ({
value={inputValue}
min={MIN_TRUNCATE_LINES}
max={MAX_TRUNCATE_LINES}
step={1}
compressed
disabled={isDisabled}
onChange={(e) => {

View file

@ -459,6 +459,7 @@ export const AxisSettingsPopover: React.FunctionComponent<AxisSettingsPopoverPro
});
}
}}
step="any"
/>
</EuiFormRow>
</EuiFlexItem>
@ -504,6 +505,7 @@ export const AxisSettingsPopover: React.FunctionComponent<AxisSettingsPopoverPro
});
}
}}
step="any"
/>
</EuiFormRow>
</EuiFlexItem>