openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

All handlers are doubled after calling SchedulePlanningCalendar.setFirstDayOfWeek()

Open malkoto1 opened this issue 3 years ago • 5 comments

OpenUI5 version: 1.108

Browser/version (+device/version): All

Hi there, I have posted a question on StackOverflow, but I want to ask here as well.

Stackoverflow url: https://stackoverflow.com/questions/74642982/planningcalendar-setfirstdayofweek-makes-handlers-handle-events-twice

In general, it seems that I have some logic in my local setup which doubles all handlers of SchedulePlanningCalendar after calling setFirstDayOfWeek().

If I create a really small setup I am not able to reproduce the issue.

Can you tell me exactly what happens upon invoking planningCalendar.setFirstDayOfWeek() that I might be breaking?

malkoto1 avatar Dec 05 '22 08:12 malkoto1

Hello @malkoto1,

Thank you for sharing this finding. I've created an internal incident 2280185751. The status of the issue will be updated here in GitHub.

Regards, Nikolay Hristov

NHristov-sap avatar Dec 05 '22 09:12 NHristov-sap

Hi there,

This was mostly an information query. Did you manage to find some information that might be of help?

malkoto1 avatar Dec 19 '22 08:12 malkoto1

Hello @malkoto1 ,

It turns out there was an issue with event handlers not being cleaned up properly.

I've made a fix. It will be available in version 1.110.0, which should release around mid January.

Best regards, Stefan

Lyserg-Diethel avatar Dec 21 '22 09:12 Lyserg-Diethel

Great News!

Thank you @Lyserg-Diethel

malkoto1 avatar Dec 21 '22 10:12 malkoto1

Fixed with 53d487febe6c12f3c4ede4b473df49f4240a1ecc

flovogt avatar Dec 21 '22 10:12 flovogt