Skip to content

Commit

Permalink
fix: set list width to 0 when resetting
Browse files Browse the repository at this point in the history
fix #643
  • Loading branch information
undefined303 authored Dec 14, 2024
1 parent 45c9c55 commit 9fce86f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,11 @@ export default {

list.innerHTML = '';
removeClass(list, CLASS_TRANSITION);
setStyle(list, getTransforms({
setStyle(list, assign({
width: 0,
}, getTransforms({
translateX: 0,
}));
})));
},

initImage(done) {
Expand Down

0 comments on commit 9fce86f

Please sign in to comment.