From 66ee79db224c3ce216afd1033adbed3530641a26 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 26 Sep 2018 20:37:59 +0530 Subject: [PATCH] fix Autocomplete in table --- ui/components/controls/Autocomplete.vue | 5 ++++- ui/components/controls/Link.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/components/controls/Autocomplete.vue b/ui/components/controls/Autocomplete.vue index 5af7fc1d..4d01fe7e 100644 --- a/ui/components/controls/Autocomplete.vue +++ b/ui/components/controls/Autocomplete.vue @@ -10,6 +10,9 @@ export default { highlightedItem: -1 } }, + render(h) { + return this.getWrapperElement(h); + }, methods: { getInputListeners() { return { @@ -44,7 +47,7 @@ export default { }, getChildrenElement(h) { return [ - this.getLabelElement(h), + this.onlyInput ? null : this.getLabelElement(h), this.getInputElement(h), this.getDropdownElement(h) ]; diff --git a/ui/components/controls/Link.vue b/ui/components/controls/Link.vue index 23676b38..6b216ffc 100644 --- a/ui/components/controls/Link.vue +++ b/ui/components/controls/Link.vue @@ -44,7 +44,7 @@ export default { }, getChildrenElement(h) { return [ - this.getLabelElement(h), + this.onlyInput ? null : this.getLabelElement(h), this.getInputGroupElement(h), this.getDropdownElement(h) ];