From 332b208d3fdc91d29181c8f42ef5ff9b1fd1f09a Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 2 Apr 2020 18:45:20 +0200 Subject: viewer: press "enter" in the empty tagInput to trigger a search revert: viewer: removing a tag from the filters opens the keyboard on mobile (fixed in Buefy) GitHub: Resolves #168 --- viewer/src/components/LdTagInput.vue | 27 +++++++++++++++++++++------ viewer/src/views/PanelLeft.vue | 6 +++++- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue index bdb07bc..b1b9e3e 100644 --- a/viewer/src/components/LdTagInput.vue +++ b/viewer/src/components/LdTagInput.vue @@ -30,7 +30,9 @@ size="is-medium" class="paneltag-input" @typing="searchTags" - @click.capture.native="onClick" + @add="clearCurrentFilter" + @remove="clearCurrentFilter" + @keydown.enter.native="onKeyEnter" > {{displayOption(props.option)}} {{$t('tagInput.nomatch')}} @@ -38,7 +40,7 @@ diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index 9e9a600..1b3f90b 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -19,7 +19,11 @@ - + {{$t('panelLeft.propositions')}}