Skip to content

Commit

Permalink
Add timeout to image collection controller - Fixes SpinaCMS#932 (Spin…
Browse files Browse the repository at this point in the history
  • Loading branch information
Bramjetten authored Jan 14, 2022
1 parent 2c6625c commit 53d6228
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ export default class extends Controller {
}

connect() {
this.sortable = Sortable.create(this.collectionTarget, {
animation: 150
})
setTimeout(function() {
this.sortable = Sortable.create(this.collectionTarget, {
animation: 150
})
}.bind(this), 250)
}

removeImage(event) {
Expand Down

0 comments on commit 53d6228

Please sign in to comment.