alova - update comments

This commit is contained in:
proddy
2023-06-15 16:08:25 +02:00
parent adc4760b5f
commit f58dbf6ec1
20 changed files with 117 additions and 137 deletions

View File

@@ -28,7 +28,6 @@ export const updateValueDirty =
const updated_value = extractEventValue(event);
const name = event.target.name;
// TODO not sure how this is even working!!
updateDataValue((prevState) => ({
...prevState,
[name]: updated_value
@@ -36,11 +35,6 @@ export const updateValueDirty =
const arr: string[] = dirtyFlags;
// TODO remove comments
// console.log('updating ' + name + ' to ' + updated_value);
// console.log('dirtyFlags:', dirtyFlags);
// console.log('binding.ts origData:', origData);
if (origData[name] !== updated_value) {
if (!arr.includes(name)) {
arr.push(name);