Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event start-selection not working #312

Open
matthbon opened this issue Nov 22, 2022 · 0 comments
Open

Event start-selection not working #312

matthbon opened this issue Nov 22, 2022 · 0 comments

Comments

@matthbon
Copy link

In the documentation i see an event start-selection. It should emit the event when user clicks first date of range.

But nothing is happening when I add it.

<date-range-picker
          ref="picker"
          v-model="dateRange"
          :locale-data="{firstDay: 1, format: 'DD-MM-YYYY', daysOfWeek: moment.weekdaysMin(), monthNames: moment.monthsShort(),}"
          :ranges="false"
          :autoApply="true"
          :singleDatePicker="false"
          :timePicker="false"
          :timePicker24Hour="false"
          :showWeekNumbers="true"
          :showDropdowns="true"
          :min-date="minDate"
          :max-date="maxDate"
          @start-selection="startDateSelection($event)"
      >
        <div slot="input" class="form-input cursor-default select-bg" slot-scope="picker">
          {{ picker.startDate | date }} t/m {{ picker.endDate | date }}
        </div>
      </date-range-picker>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant