I have a project with 2 custom javascript components - slider (from CUBA platform documentation) and jQuery-Timepicker-Addon (that uses jquery-ui sliders). When I open a form where both components are placed, application in browser hangs and doesn’t repair (F5, Ctrl-F5) until server restart.
The components work normal separately or both after form hot deploy, but form hangs again after server restart.
I tried webjars and/or simple copies of js libraries - no difference.
How can I make them work together?
Test project is attached.
Thanks Gleb for your answer but I got absolutely the same result with your code - the form still hangs.
My OS is Windows 7 Pro.
In addition I can tell that when it happens Windows process “System” starts to consume more CPU resources for a time about 2-3 minutes.
The reason I’m trying the custom dateTimePicker component is inconvenience of time input in DateTime fields. If the CUBA component provided mouseclicking time input then I would not need all these.
It appears that both components work in CUBA Platform 7.x. I managed to use them on one form in CUBA Sampler application. But there is a bug: a slider handle is over dateTimePicker popup, but I think it’s not a CUBA problem.
Upd: I found that the problem is in the z-index css style parameter of dateTimePicker popup. If I assign z-index:4 (or >4) in browser console the popup is over any other form element. But I don’t know how to set this style parameter.