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): hide adjacent events when not using show-adjacent-months #19585

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

nekosaur
Copy link
Member

Description

we should not show events on adjacent days unless show-adjacent-months is used

Markup:

<template>
  <v-app>
    <v-container>
      <v-calendar
        v-model="date"
        :events="events"
      />
    </v-container>
  </v-app>
</template>

<script>
  import { ref } from 'vue'
  export default {
    name: 'Playground',
    setup () {
      const date = ref([new Date(2024, 3, 1)])
      return {
        date,
        events: [
          {
            start: new Date(2024, 3, 1),
            end: new Date(2024, 3, 1),
            title: 'foo',
          },
          {
            start: new Date(2024, 4, 1),
            end: new Date(2024, 4, 1),
            title: 'bar',
          },
        ],
      }
    },
  }
</script>

@nekosaur nekosaur added the C: VCalendar VCalendar label Apr 10, 2024
@nekosaur nekosaur requested a review from blalan05 April 10, 2024 15:39
@nekosaur nekosaur self-assigned this Apr 10, 2024
@johnleider johnleider added the T: bug Functionality that does not work as intended/expected label Apr 10, 2024
@johnleider johnleider added this to the v3.5.x milestone Apr 10, 2024
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.

2 participants