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
54 stars 6 forks source link

[VITE] applyState doesn't work after tab change #5638

Open chuckn0rris opened 1 year ago

chuckn0rris commented 1 year ago

Forum post

Steps to reproduce:

Reordering a column per drag'n'drop After 1sec it will be automatically saved (console log output) Per Refresh/F5 the saved state will be loaded Per swap between the tabs/grids the default state will be loaded

bryntum-demo.zip

chuckn0rris commented 1 year ago

User input https://forum.bryntum.com/viewtopic.php?f=43&t=22919&p=114448#p114448

The problem is that the Bryntum components are incompatible with the nice new Vue 3 setup tags because they do not use defineExpose to expose "instance".

Vite can make it work in local dev but in production it breaks. Until Bryntum solves this the solution is to avoid the new Vue 3 setup tags.

For Bryntum, see more or simply use defineExpose on your Vue components: https://github.com/vuejs/rfcs/blob/master/active-rfcs/0040-script-setup.md#exposing-components-public-interface

chuckn0rris commented 1 year ago

User is waiting for the fix

chuckn0rris commented 1 year ago

Requested by user again