fix(number-fields): избегаем потери точности длинных чисел
- number-поля теперь рендерятся как text + inputMode=numeric, чтобы браузер не округлял значения через input type=number - пробелы при вставке в number-поля удаляются - бэкенд нормализует значения number-полей в строку перед сохранением - добавлен хелпер normalizeFieldValueForStorage Closes: искажение расчётного счёта и других длинных числовых полей
This commit is contained in:
4
migrations/0042_user_additional_contacts.sql
Normal file
4
migrations/0042_user_additional_contacts.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- Additional phones and emails with tags for user profiles
|
||||
ALTER TABLE users
|
||||
ADD COLUMN IF NOT EXISTS additional_phones JSONB DEFAULT '[]'::jsonb,
|
||||
ADD COLUMN IF NOT EXISTS additional_emails JSONB DEFAULT '[]'::jsonb;
|
||||
Reference in New Issue
Block a user