vue-strap
vue-strap copied to clipboard
Datepicker input name attribute
Hi, would it be possible to add a name attribute to the Datepicker input element? This attribute is already present on the other input components (checkbox, radio, input, etc). Having trouble POSTing form data from the datepicker without it.
<input class="form-control datepicker-input" type="text" v-model="val" :class="{'with-reset-button': clearButton}" :placeholder="placeholder" :name="name" <!-- NEW --> :style="{width:width}" @click="inputClick" />
#66 Submitted pull request
If I import the component like this:
import { datepicker } from 'vue-strap'
It puts the name attribute on the parent div.
@jeitnier Yes. Your right. But I am confused. Because I checkd the Datepicker.vue. I found the name attribute on the input...
@Stetzon Hello Stetzon, I got the same issues with you. You can copy DatePicker.vue from vue-strap. and utils/utils.js -> translations function to somewhere. Then import it.