onValueChange={(values) => {
const { formattedValue, value } = values;
// formattedValue = $2,223
// value ie, 2223
this.setState({ profit: formattedValue });
}}
formInputs = document.querySelectorAll('.js-input'),
inputEmail = document.querySelector('.js-input-email'),
inputPhone = document.querySelector('.js-input-phone');
Object.values([
{key: 1, classifName: 'ABC', classifId: 1},
{key: 2, classifName: 'BCД', classifId: 2},
{key: 3, classifName: 'СДВ', classifId: 3},
{key: 1, classifName: 'ABC', classifId: 1},
{key: 1, classifName: 'ABC', classifId: 1},
].reduce((result, item) => {
result[item.classifId] = item;
return result;
}, {}))
const form1 = document.getElementById('form-1');
const form2 = document.getElementById('form-2');
const formData = new FormData(form1);
for (const [key, value] of formData) {
form2.querySelector(`[name="${key}"]`).value = value;
}
update: $.throttle(300, () => {
el.textContent = mask(chars, params.progress);
}),