We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe069dc commit db4d02aCopy full SHA for db4d02a
1 file changed
internal/webui/src/containers/MetricFormDialog/components/MetricForm/components/MetricFormStepSQL.tsx
@@ -61,10 +61,12 @@ export const MetricFormStepSQL = () => {
61
label="Version"
62
options={VersionOptions}
63
freeSolo
64
+ inputValue={field.value}
65
value={field.value}
- onInputChange={(_, value) => field.onChange(value)}
66
- // TDDO: Restrict input to numbers and dots only, but allow free solo for custom versions
67
-
+ onInputChange={(_, value) => {
+ field.value = value.replace(/[^0-9.]/g, ""); // Allow only numbers and dots
68
+ field.onChange(field.value)
69
+ }}
70
/>
71
)}
72
0 commit comments