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

Drop Cropping creates duplicate entry next day #434

Open
webdingens opened this issue Sep 1, 2021 · 2 comments
Open

Drop Cropping creates duplicate entry next day #434

webdingens opened this issue Sep 1, 2021 · 2 comments

Comments

@webdingens
Copy link

Problem in Version: 3.10.1
Browser: Chrome 92

Steps to reproduce:

  1. Create a longer event
  2. Drag event over the edge so the end time is outside of the day
  3. Resize the event
  4. Witness the same event appearing in the adjacent cell on the right, connected by the resize handle.
  5. Drag & Drop one of the events will clear the other

I also noticed that even though the events will be cleared some inconsistencies in the mutableEvents array might appear, like an event that is not appearing in the ui but is part of the array. Couldn't reproduce on the second try.

Settings:

selected-date="2021-02-01"
:time-cell-height="30"
:disable-views="['years', 'year', 'month', 'day']"
:events="calendarValue"
hide-view-selector
hide-title-bar
:snap-to-time="60"
:editable-events="{ title: false, drag: true, resize: true, delete: true, create: true }"

Imports:

import VueCal from 'vue-cal'
import 'vue-cal/dist/drag-and-drop.js'
import 'vue-cal/dist/vuecal.css'

I've already traced the problem to https://github.com/antoniandre/vue-cal/blob/v3.10.1/src/vue-cal/modules/drag-and-drop.js#L68
The cropping is using 24*60 Minutes in my example, switching to the next day. Maybe it is not a problem in V4, haven't tested it yet.

@Spacarar
Copy link

seems to be related to #423 and is tangentially related to #425

@natajonasdacoliveira
Copy link

Anyone has a fix for this? In my case it is always duplicating to the right since i'm using no time, only dates

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

3 participants