From 88c3103755cce19b27518ad8abf10036bfa685eb Mon Sep 17 00:00:00 2001 From: shpuld Date: Fri, 7 Jun 2019 19:09:38 +0300 Subject: [PATCH] make poll form state local instead of vuex --- src/components/poll/poll_form/poll_form.vue | 52 +++++++------------ src/components/poll/poll_vote/poll_vote.vue | 2 +- .../post_status_form/post_status_form.js | 10 ++-- .../post_status_form/post_status_form.vue | 2 +- 4 files changed, 27 insertions(+), 39 deletions(-) diff --git a/src/components/poll/poll_form/poll_form.vue b/src/components/poll/poll_form/poll_form.vue index 4f8b0070..f6f9fe4b 100644 --- a/src/components/poll/poll_form/poll_form.vue +++ b/src/components/poll/poll_form/poll_form.vue @@ -7,24 +7,24 @@ class="poll-option-input" type="text" :placeholder="$t('polls.option')" - @input="onUpdateOption($event, index)" - :value="option" :maxlength="maxLength" + v-model="options[index]" + @change="updatePollToParent" > -
- +
+
- +