It seems that on devices with iOS, the click-event fiers 2 times. You can see it in the following demo. https://snippet.webix.com/xii65chb
Tested in Chrome 68 (emulation mode) and on a real iPad mini.
In addition, in debug-mode, we also get an error when closing the modal window.
Hello,
It seems that on devices with iOS, the click-event fires 2 times
The possible reason is specific fast-click logic for iOS, but so far we haven’t detected any issue with it.
If the problem is caused by this logic, it can be disabled with the following statement ( this statement is available from Webix 5.4.1 ).
Please, try to add this line before the UI init:
webix.Touch.config.fastClick = false;
in debug-mode, we also get an error when closing the modal window
Could you please provide the error stack from the debug node?
Chrome Version 68.0.3440.106 (Official Build) (64-bit) IPad emulation:
webix UI v.5.4.0. GPL (local)
TypeError: Cannot read property 'parentNode' of null
at callback (webix_debug.js:29352)
at HTMLDivElement.box.onclick (webix_debug.js:29457)
at webix_debug.js:19258
at webix_debug.js:279
In my test-snippet Code Snippet. (But I reproduced the error only once)
webix.js?latest:7 Uncaught TypeError: Cannot read property 'parentNode' of null
at t (VM330 webix.js:7)
at HTMLDivElement.a.onclick (VM330 webix.js:7)
at VM330 webix.js:7
at VM330 webix.js:7
With webix.Touch.config.fastClick = false;
all work fine in snippet. Locally I can not check, because only version 5.4.0 is available.
When will the 5.4.1 (or most recent) be available on Node please? Facing the same touch issue…