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

Press and hold deletes event on mobile #576

Open
GinJus opened this issue Jun 3, 2024 · 1 comment
Open

Press and hold deletes event on mobile #576

GinJus opened this issue Jun 3, 2024 · 1 comment

Comments

@GinJus
Copy link

GinJus commented Jun 3, 2024

I am currently using Vue-cal 4.8.1 with Vue 3.4.27.

In the 'day' view, when I press and hold on an event, it triggers a deletion action. I can't figure out which function is being used; none of the on-event functions are called.

I am unable to replicate the same issue on a desktop.

@GinJus
Copy link
Author

GinJus commented Jun 3, 2024

I feel quite embarrassed. After spending hours trying to figure it out, I discovered the problem just 2 minutes after posting this.

I have a dynamic object bound to :editable-events="eventConfig". When switching views (from week to day), there are different privileges.

The 'delete' functionality doesn't seem to be responding to this change (resize and drag are working). Could this still be considered a bug?

This function is triggered upon view change:

        onViewChange(newView) {
            this.currentView = newView.view;
            this.startDate = newView.startDate;
            if(newView.view === 'day'){
                this.eventConfig = { title: false, drag: true, resize: true, delete: false, create: true };
            } else {
                this.eventConfig = { title: false, drag: false, resize: false, delete: false, create: false };
            }
        },

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

1 participant