As the title says, an on-hold event triggered by a button which itself is removed by the on-hold event has a problem.
The first list-item containing the button is removed, but when I then try to remove the second list-item, the second button’s on-hold event can not be triggered, unless I click/touch any element. then it works again.
My guess it the mouseUp/touch-end event is not triggered because the element which triggered the mouseDown/touch-start is not there anymore, requiring you to touch something to reset the ‘touch status’.
any smart solutions to this problem? is there a way to send a touch-end event by itself and should this be bound to the same element? or would it be better to write a new directive for this particular on-hold?
I tried searching the web, but found it hard to find the right words to find a solution. and I would probably have to end up reading ionic source to find out what to change in the new directive, and that would probably be hard, since I only started learning js,angular and ionic a month ago. So if someone has a solution, let me know:)