vue-bulma / datepicker

Datepicker Component for Vue Bulma
MIT License
115 stars 56 forks source link

Can't make works the toggle and clear buttons on a second datepicker on same view. #57

Open holic-cl opened 7 years ago

holic-cl commented 7 years ago

Hi, thanks for this package.

I can't make works the data-toggle neither data-clear buttons on a second datepicker added on same view.

      <datepicker
        id="start_at"
        name="start_at"
        :config="{
          wrap: true,
          dateFormat: 'd-M-Y h:i:S',
          allowInput: true,
          enableTime: true
        }"
        readonly>

        <a class="button" data-toggle><i class="fa fa-calendar"></i></a>
        <a class="button" data-clear><i class="fa fa-close"></i></a>
      </datepicker>
      <datepicker
        id="finish_at"
        name="finish_at"
        :config="{
          wrap: true,
          dateFormat: 'd-M-Y h:i:S',
          allowInput: true,
          enableTime: true
        }"
        readonly>

        <a class="button" data-toggle><i class="fa fa-calendar"></i></a> // <-- this
        <a class="button" data-clear><i class="fa fa-close"></i></a> // <-- and this one doesn't works
      </datepicker>

Don't know if i have to add a id or name to the elements.

Any suggestion will be grateful.