Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(input): revert back to input as root element
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Apr 13, 2017
1 parent c58980b commit b293ac7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
3 changes: 0 additions & 3 deletions packages/vue-instantsearch-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@
"vue": "^2.2.2"
}
}



31 changes: 8 additions & 23 deletions packages/vue-instantsearch-input/src/Input.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
<template>
<form role="search" action="" @submit.prevent="onFormSubmit">
<input type="search"
autocorrect="off"
autocapitalize="off"
autocomplete="off"
spellcheck="false"
:class="bem()"
v-model="query"
ref="input"
:placeholder="placeholder"
>
</form>
<input type="search"
autocorrect="off"
autocapitalize="off"
autocomplete="off"
spellcheck="false"
:class="bem()"
v-model="query"
>
</template>

<script>
import algoliaComponent from 'vue-instantsearch-component';
export default {
mixins: [algoliaComponent],
props: {
placeholder: {
type: String,
default: ''
}
},
data() {
return {
blockClassName: 'ais-input'
Expand All @@ -46,11 +36,6 @@ export default {
});
}
}
},
methods: {
onFormSubmit() {
this.$refs.input.blur();
}
}
};
</script>

0 comments on commit b293ac7

Please sign in to comment.