I've been doing this so far:
var x = document.getElementsByClassName('wkt-close')[0] as HTMLElement;
x.click();
This worked fine on android and browser, but not on iOS. .click() event doesn't work because iOS use touch event and I couldn't emulate that on Typescript.
I'm using Ionic 3 with lazy loading.
I need to call the close function from a button.
I've been doing this so far: var x = document.getElementsByClassName('wkt-close')[0] as HTMLElement; x.click();
This worked fine on android and browser, but not on iOS. .click() event doesn't work because iOS use touch event and I couldn't emulate that on Typescript.
Any idea? (Sorry for my poor english)