Skip to content

Commit

Permalink
fix(file-item): prevent flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Sep 19, 2022
1 parent 55d53ba commit d04ec9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blocks/FileItem/FileItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ export class FileItem extends UploaderBlock {
state = FileItemState.FINISHED;
}

this.$.state = state;
if (this.$.state !== state) {
this.$.state = state;
}
}

/** @private */
Expand Down

0 comments on commit d04ec9d

Please sign in to comment.