Prevent Keyboard from showing after swipe?

I have a swipe event on an input field to delete it. Works great but the keyboard shows after its deleted because the click event is still being triggered. Anyway to stop this?

i do not know the order of events, but maybe you can use event.preventDefault() and event.stopImmediatePropagation() to stop the default behavior and the bubbling