Merge pull request #3041 from mervekaraman/master
Error text does not disappear when option changes
This commit is contained in:
commit
cf41030916
@ -352,16 +352,23 @@ export default {
|
|||||||
this.$emit('limit', 'count');
|
this.$emit('limit', 'count');
|
||||||
this.$emit('limit_count', this.limitCount);
|
this.$emit('limit_count', this.limitCount);
|
||||||
this.$emit('limit_date', null);
|
this.$emit('limit_date', null);
|
||||||
|
|
||||||
|
this.limitDateError = '';
|
||||||
break;
|
break;
|
||||||
case 'on':
|
case 'on':
|
||||||
this.$emit('limit', 'date');
|
this.$emit('limit', 'date');
|
||||||
this.$emit('limit_date', this.limitDate);
|
this.$emit('limit_date', this.limitDate);
|
||||||
this.$emit('limit_count', 0);
|
this.$emit('limit_count', 0);
|
||||||
|
|
||||||
|
this.limitCountError = '';
|
||||||
break;
|
break;
|
||||||
case 'never':
|
case 'never':
|
||||||
default:
|
default:
|
||||||
this.$emit('limit', 'count');
|
this.$emit('limit', 'count');
|
||||||
this.$emit('limit_count', 0);
|
this.$emit('limit_count', 0);
|
||||||
|
|
||||||
|
this.limitCountError = '';
|
||||||
|
this.limitDateError = '';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
@if (! $hideItemDescription)
|
@if (! $hideItemDescription)
|
||||||
<textarea
|
<textarea
|
||||||
class="w-full text-sm px-3 py-2.5 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
|
class="w-full text-sm px-3 py-2.5 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
|
||||||
style="height:42px;"
|
style="height:42px; min-height:42px;"
|
||||||
:ref="'items-' + index + '-description'"
|
:ref="'items-' + index + '-description'"
|
||||||
placeholder="{{ trans('items.enter_item_description') }}"
|
placeholder="{{ trans('items.enter_item_description') }}"
|
||||||
:name="'items.' + index + '.description'"
|
:name="'items.' + index + '.description'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user