Clearable selects now unset the property when cleared

This commit is contained in:
Stefan Zermatten
2020-03-09 10:44:40 +02:00
parent 625455da09
commit 1be09e48ef
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@
:value="model.reset"
:error-messages="errors.reset"
:menu-props="{auto: true, lazy: true}"
@change="(value, ack) => $emit('change', {path: ['reset'], value, ack})"
@change="(value, ack) => $emit('change', {path: ['reset'], value: value || '', ack})"
:debounce-time="debounceTime"
/>
<text-field

View File

@@ -61,7 +61,7 @@
clearable
:value="model.baseProficiency"
:error-messages="errors.baseProficiency"
@change="(value, ack) => {$emit('change', {path: ['baseProficiency'], value: value || 0, ack}); log({value, ack})}"
@change="(value, ack) => {$emit('change', {path: ['baseProficiency'], value: value || '', ack}); log({value, ack})}"
/>
</div>
</form-section>