Script error after hide/show

Hello;

after changing pvc value 0 to 1 it shows another controls. if i change pvc value to 0 it is hide another controls.

it is works 1 time after that it is gives error.

is it a bug? or am i doing wrong?

here is snippet:
https://snippet.dhtmlx.com/bafzmal7

thank you

Hello.

I apologize for the delay with the reply.
Please, try to use the awaitRedraw() helper:

Like:
https://snippet.dhtmlx.com/p26c5xyh
The common logic in your case: you should not hide the control until some other operation with that control is not finished yet. So, it is need to use the awaitRedraw() to wait till that operation finishes

Thank you Sematik;

it is a good example to learn how to use helpers.

1 Like