diff --git a/components/ui/TextInput.vue b/components/ui/TextInput.vue
index 09480e23..7402259e 100644
--- a/components/ui/TextInput.vue
+++ b/components/ui/TextInput.vue
@@ -4,6 +4,9 @@
{{ prependIcon }}
+
+ close
+
@@ -26,7 +29,8 @@ export default {
prependIcon: {
type: String,
default: null
- }
+ },
+ clearable: Boolean
},
data() {
return {}
@@ -53,6 +57,9 @@ export default {
}
},
methods: {
+ clear() {
+ this.input = ''
+ },
focus() {
if (this.$refs.input) {
this.$refs.input.focus()
diff --git a/pages/search.vue b/pages/search.vue
index 4c6cf971..f7f747f4 100644
--- a/pages/search.vue
+++ b/pages/search.vue
@@ -1,7 +1,7 @@