Skip to content

weekNumberClickable on DatePicker does not trigger event #1600

@cdouine39

Description

@cdouine39

Overview of the problem

Oruga version: 0.11.6
Vuejs version: 3
OS/Browser: Windows / Chrome

Description

When using the DatePicker with the property weekNumberClickable, I can see the cursor modified to pointer but nothing happens when clicking : I was expecting the week to be selected and/or an event to be sent.

Expected behavior

From the code https://github.com/oruga-ui/oruga/blob/89502f9ccb8bbdfcd5e946710f093507e24fc286/packages/oruga/src/components/datepicker/DatepickerTableRow.vue, I was expecting to receive an event "week-number-click".

Actual behavior

No event is sent. Nothing appears on the calendar.

Steps to reproduce

Add a datepicker in a vue :
<o-datepicker :showWeekNumber="true" :weekNumberClickable="true" @week-number-click="console.log('week clicked')" ></o-datepicker>

Image

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