Skip to content
Snippets Groups Projects
Commit 8438d5a2 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix prerecorded value deletion

parent ee80a3b0
No related branches found
No related tags found
1 merge request!568REDMINE_ISSUE-17139 | Page édition signalement - pas de suppression attribut liste pré-enregistrée ou liste
......@@ -87,7 +87,7 @@
<div
v-if="selectedPrerecordedValue"
class="multiselect__clear"
@click.prevent.stop="clear"
@click.prevent.stop="clearPrerecordedValue"
>
<i
class="close icon"
......@@ -383,7 +383,8 @@ export default {
]),
updateStore_extra_form(evt) {
if (this.field) {
console.log(this.field);
if (this.field) {
const newExtraForm = this.field;
if (this.field.field_type === 'boolean') {
newExtraForm['value'] = evt.target.checked; //* if checkbox use "checked"
......@@ -416,10 +417,11 @@ export default {
this.prerecordedListSearchQuery = null;
this.updateStore_extra_form({ target: { value: this.selectedPrerecordedValue } });
},
clear() {
clearPrerecordedValue() {
this.selectedPrerecordedValue = null;
this.prerecordedListSearchQuery = null;
this.updateStore_extra_form({ target: { value: null } });
},
selectMultipleCheckbox(e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment