Events add change doesn't render instantly
laurensiusadi opened this issue · comments
KDh0eB1Mci.mp4
This issue happen on week and day view not on month view.
Happen on my setup, repeatable on https://github.com/fullcalendar/fullcalendar-example-projects/tree/master/vue-vuex
Issue not found on both Vue codesandbox and fullcalendar core.
Steps:
- Change view to week view
- Drag select to open add event dialog
- Press cancel
- The empty selection stays, then click with mouse it disappears
- Drag select to open add event dialog
- Type in title, press OK to save
- Event item stays empty, then when clicked it updates
OMG silly me.
After watching the code differences closely, found this:
calendarApi.unselect() // clear date selection
Now the vuex example works as expected with that added.
But is this the intended behavior?
Yes, the selection needs to be cleared with unselect
.
If there is still an issue, please post a runnable, stripped-down demonstration of the bug.