точка вместо зпятой
This commit is contained in:
@@ -434,7 +434,9 @@ export const textDefinition: ElementDefinition<TextConfig, string> = {
|
|||||||
value={displayValue}
|
value={displayValue}
|
||||||
onChange={e => {
|
onChange={e => {
|
||||||
if (!isAnimating) {
|
if (!isAnimating) {
|
||||||
handleValueChange(e.target.value)
|
// Автоматически заменяем запятые на точки
|
||||||
|
const normalizedValue = e.target.value.replace(/,/g, '.')
|
||||||
|
handleValueChange(normalizedValue)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
required={config.required}
|
required={config.required}
|
||||||
|
|||||||
Reference in New Issue
Block a user