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