1
Fork 0

replace .reset() with .validate(false)

This commit is contained in:
Conduitry 2022-07-24 07:57:53 -04:00
parent 455a86b63b
commit a68aeef687
1 changed files with 2 additions and 6 deletions

View File

@ -15,8 +15,8 @@ export const field = (validator, chill) => {
return valid;
};
const validate = () => {
message_enabled = true;
const validate = (display = true) => {
message_enabled = display;
return update();
};
@ -30,10 +30,6 @@ export const field = (validator, chill) => {
return { destroy: () => node.removeEventListener('blur', on_blur) };
};
action.reset = () => {
message_enabled = false;
update();
};
action.set = (new_value) => {
value = new_value;
update();