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

fix(VCalendar): forward all bound events to internal elements #15592

Merged
merged 3 commits into from Aug 9, 2022

Conversation

KaelWD
Copy link
Member

@KaelWD KaelWD commented Aug 7, 2022

Markup:

<template>
  <div>
    <v-sheet height="300">
      <v-chip
        draggable
        color="blue"
      >drag me over the calendar</v-chip> mouseUp and mouseEnter functions no longer work with the dragged element
      <v-calendar
        ref="calendar"
        type="month"
        start="2021-01-17"
        :weekdays="[1, 2, 3, 4, 5, 6, 0]"
        @dragover:day="dragoverDay"
        @mouseenter:day="mouseenterDay"
        @mouseup:day="mouseupDay"
      ></v-calendar>
    </v-sheet>
  </div>
</template>

<script>
  export default {
    data: () => ({
    }),
    methods: {
      dragoverDay (event) {
        console.log('dragover', event.day)
      },
      mouseenterDay (event) {
        console.log('enter', event.day)
      },
      mouseupDay (event) {
        console.log('up', event.day)
      },
    },
  }
</script>

@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected C: VCalendar VCalendar labels Aug 7, 2022
@KaelWD KaelWD added this to the v2.6.x milestone Aug 7, 2022
@KaelWD KaelWD merged commit 299330c into master Aug 9, 2022
@KaelWD KaelWD deleted the fix/calendar-forward-all-events branch August 9, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VCalendar VCalendar T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant