You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the ngx-sortablejs for change the position of the elements. I have added the custom delete button for remove the particular element.
I'm using the following code:
Modify order
removeImage(i, id) {
// delete element code goes here
}
The above code is working fine in the Desktop and some mobile devices. But in the another mobile device's, it's not working. On the click on item, the drag feature enabled instead of delete function.
Could you please help me out for solve the problem?
Thanks In Advance
The text was updated successfully, but these errors were encountered:
Try excluding your delete button by using the filter:
privatefilterSortable(event: PointerEvent): boolean {// using closest to find if there is a parent with class, target often is svg-elementconstisRemoveIcon=(event.targetasHTMLElement).closest('.remove-icon-box');return!this.editModeActive||!!isRemoveIcon;}
Hello,
Greetings!!
I'm using the ngx-sortablejs for change the position of the elements. I have added the custom delete button for remove the particular element.
I'm using the following code:
order
removeImage(i, id) {
// delete element code goes here
}
The above code is working fine in the Desktop and some mobile devices. But in the another mobile device's, it's not working. On the click on item, the drag feature enabled instead of delete function.
Could you please help me out for solve the problem?
Thanks In Advance
The text was updated successfully, but these errors were encountered: