File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
packages/Webkul/Admin/src/Resources/views/components/attributes/edit Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,22 @@ class="!mb-2 w-full rounded border border-gray-200 px-2.5 py-2 text-sm font-norm
70
70
/ >
71
71
72
72
<!-- Search Icon (absolute positioned) -->
73
- < span class = " absolute inset-y-0 right-0 flex items-center pr-3" >
73
+ < span class = " absolute bottom-1 top-2 right-0 flex items-center pr-3" >
74
74
< div class = " flex items-center justify-center space-x-1" >
75
+ <!-- Loader (optional, based on condition) -->
76
+ < i
77
+ v- if = " entityId && ! isSearching"
78
+ class = " icon-cross-large cursor-pointer text-2xl"
79
+ @click = " remove"
80
+ >< / i>
81
+
75
82
<!-- Loader (optional, based on condition) -->
76
83
< div
77
84
class = " relative"
78
85
v- if = " isSearching"
79
86
>
80
87
< x- admin:: spinner / >
81
88
< / div>
82
-
83
- <!-- Search Icon -->
84
- < i class = " fas fa-search text-gray-500" >< / i>
85
89
< / div>
86
90
< / span>
87
91
< / div>
@@ -222,6 +226,18 @@ class="px-4 py-2 text-center text-gray-500"
222
226
this .showPopup = false ;
223
227
}
224
228
},
229
+
230
+ remove () {
231
+ this .entityId = null ;
232
+
233
+ this .selectedItem = null ;
234
+
235
+ this .searchTerm = ' ' ;
236
+
237
+ this .searchedResults = [];
238
+
239
+ this .$emit (' lookup-removed' );
240
+ }
225
241
}
226
242
});
227
243
</script >
You can’t perform that action at this time.
0 commit comments