Skip to content

Commit

Permalink
fix trash bin on inventory edit
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-gui committed Mar 28, 2021
1 parent 195f2fa commit 97ad454
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions assets/controllers/inventory_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export default class extends Controller {

remove(event) {
event.preventDefault();
event.target.closest('.js-group-item')
.fadeOut()
.remove();
event.target.closest('.js-group-item').remove();
}
}
}

0 comments on commit 97ad454

Please sign in to comment.