Suite 8 dhtmlx window

Hi,
I noticed that when the window is movable, form.validate() always returns “true” when associated with a button in the “header” even with invalid fields present.
Test attachment - DHTMLX Snippet Tool.

Tks.

Could you please, clarify your issue?
According to the provided snippet validation works well: