Skip to content

Event start-selection not working #312

@matthbon

Description

@matthbon

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions