fix(search-input): submit on enter
This commit is contained in:
parent
fad623eb27
commit
4a2ea993fd
@ -5,7 +5,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:value="value"
|
:value="value"
|
||||||
@input="on_input">
|
@keydown.enter="on_input">
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -20,13 +20,7 @@ export default {
|
|||||||
on_input(event) {
|
on_input(event) {
|
||||||
this.$emit('input', event.target.value);
|
this.$emit('input', event.target.value);
|
||||||
this.on_search();
|
this.on_search();
|
||||||
|
|
||||||
// TODO: Debouncing doesn't fire search
|
|
||||||
// frappe.utils.debounce(this.on_search, 500);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
</style>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user