Skip to content
Snippets Groups Projects
Commit d0b014be authored by Mathieu Massaviol's avatar Mathieu Massaviol
Browse files

Debug remove chip when several values #29

Add submit on enter on parameters fields
parent 45b46978
No related branches found
No related tags found
1 merge request!80Corrections après test de la recherche
Pipeline #10823 passed
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
:inputProps="{ fluid: true }" :inputProps="{ fluid: true }"
:initialValue="model.params[key as keyof typeof SearchQueryParams]" :initialValue="model.params[key as keyof typeof SearchQueryParams]"
v-on:updateValue="handleChange($event, key)" v-on:updateValue="handleChange($event, key)"
v-on:keyup.enter="emit('submit')"
/> />
</div> </div>
<div class="text-right"> <div class="text-right">
...@@ -65,11 +66,11 @@ ...@@ -65,11 +66,11 @@
/> />
<template v-for="key in Object.keys(SearchQueryParams)" v-bind:key="key"> <template v-for="key in Object.keys(SearchQueryParams)" v-bind:key="key">
<Chip <Chip
v-for="value in model.params[key]" v-bind:key="value" v-for="value in model.params[key as keyof typeof SearchQueryParams]" v-bind:key="value"
class="bg-gray-200" class="bg-gray-200"
:label="translateValue(searchMetadata[key as keyof typeof SearchQueryParams].label) + ': ' + value" :label="translateValue(searchMetadata[key as keyof typeof SearchQueryParams].label) + ': ' + value"
removable removable
@remove="model.params[key]=[], emit('submit')" @remove="model.params[key]=model.params[key as keyof typeof SearchQueryParams]?.filter((v) => v != value), emit('submit')"
/> />
</template> </template>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment