File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 88 <ion-input :size =" 10" ref =" $searchInput"
99 :debounce =" 300"
1010 :placeholder =" `${LL.Search()}...`"
11- @ionInput =" (ev) => $emits('search-terms-updated', ''+ev.target.value)"
11+ :clear-input =" true"
12+ v-model =" searchTermsRef"
13+ @ionInput =" (ev) => $emits('search-terms-updated', ''+(ev.target.value ?? ''))"
1214 />
1315 <ion-icon class =" iconInput" src =" /assets/icons/line/search-line.svg" ></ion-icon >
1416 <ion-button shape =" round" size =" small" fill =" outline" @click =" toggleSearchField()"
1517 :aria-label =" LL.Search_close()" >
16- <ion-icon src =" /assets/icons/line/close -line.svg" ></ion-icon >
18+ <ion-icon src =" /assets/icons/line/arrow-right -line.svg" ></ion-icon >
1719 </ion-button >
1820 </div >
1921 </transition >
@@ -70,8 +72,6 @@ async function toggleSearchField() {
7072 if (isRefDefined ($searchInput )) {
7173 setTimeout (() => $searchInput .value .$el .setFocus (), 100 );
7274 }
73- } else {
74- searchTermsRef .value = ' ' ;
7575 }
7676}
7777 </script >
@@ -101,4 +101,8 @@ ion-toolbar {
101101 gap : var (--app-gutters );
102102 }
103103}
104+
105+ :deep(ion-input) button .input-clear-icon {
106+ margin-right : 80px ;
107+ }
104108 </style >
You can’t perform that action at this time.
0 commit comments