bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

[VUE-3] Preventable events don't work in Vue wrapper #9718

Closed marciogurka closed 3 weeks ago

marciogurka commented 1 month ago

Forum post

Using any Vue 3 demo, add the following event listener

<bryntum-calendar
        ref="calendar"
        v-bind="calendarConfig"
        @beforeEventEdit="openEventEditor"
    />

 // beforeEventEdit handler
        const openEventEditor = ({ eventRecord }) => {
            console.log('beforeEventEdit');
            return false;
        };

on 5.6.13 it works as expected, the popup is not displayed, but on 6.x the popup is displayed.

ExtAnimal commented 1 month ago

Returning false from a beforeEventEdit handler definitely does prevent editing. This needs to be investigated more before logging a bug like this.

We need a new Project option: "Framework wrappers"