Error text does not disappear when option changes

This commit is contained in:
merve karaman 2023-08-29 16:23:04 +03:00 committed by GitHub
parent a5c8524d4a
commit f554d3cc64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,16 +352,23 @@ export default {
this.$emit('limit', 'count');
this.$emit('limit_count', this.limitCount);
this.$emit('limit_date', null);
this.limitDateError = '';
break;
case 'on':
this.$emit('limit', 'date');
this.$emit('limit_date', this.limitDate);
this.$emit('limit_count', 0);
this.limitCountError = '';
break;
case 'never':
default:
this.$emit('limit', 'count');
this.$emit('limit_count', 0);
this.limitCountError = '';
this.limitDateError = '';
break;
}