diff --git a/src/components/autocomplete_input/autocomplete_input.js b/src/components/autocomplete_input/autocomplete_input.js index 51c1f5d9b1..0f1a510c23 100644 --- a/src/components/autocomplete_input/autocomplete_input.js +++ b/src/components/autocomplete_input/autocomplete_input.js @@ -3,9 +3,12 @@ import { take, filter, map } from 'lodash' const AutoCompleteInput = { props: [ + 'id', 'classObj', 'value', + 'placeholder', 'autoResize', + 'multiline', 'drop', 'dragoverPrevent', 'paste', diff --git a/src/components/autocomplete_input/autocomplete_input.vue b/src/components/autocomplete_input/autocomplete_input.vue index d3bda5977a..309f22026c 100644 --- a/src/components/autocomplete_input/autocomplete_input.vue +++ b/src/components/autocomplete_input/autocomplete_input.vue @@ -4,9 +4,10 @@ v-if="multiline" ref="textarea" :value="text" + :id="id" @input="text = $event.target.value, $emit('input', $event.target.value), autoResize && resize($event)" @click="setCaret" - @keyup="setCaret" :placeholder="$t('post_status.default')" rows="1" :class="classObj" + @keyup="setCaret" :placeholder="placeholder" rows="1" :class="classObj" @keydown.down="cycleForward" @keydown.up="cycleBackward" @keydown.shift.tab="cycleBackward" diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index ac5f556645..18c2d2b25c 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -18,7 +18,9 @@ class="form-cw">