Skip to content

Commit

Permalink
chore: bump ui version to 0.7.3 and improve loading state handling in…
Browse files Browse the repository at this point in the history
… Uploader component
  • Loading branch information
tnrich committed Dec 12, 2024
1 parent 8b0ccd6 commit 76ccd8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### 0.2.0

- chore: bump ui version [`#112`](https://github.com/TeselaGen/tg-oss/pull/112)
- feat: Add form separator component [`#111`](https://github.com/TeselaGen/tg-oss/pull/111)
- Fix editable cell table tests [`#108`](https://github.com/TeselaGen/tg-oss/pull/108)
- update DataTable and FormComponents [`#100`](https://github.com/TeselaGen/tg-oss/pull/100)
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@teselagen/ui",
"version": "0.7.2",
"version": "0.7.3",
"main": "./src/index.js",
"type": "module",
"exports": {
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/src/FormComponents/Uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,11 @@ const Uploader = ({
Promise.allSettled(Array.isArray(__accept) ? __accept : [__accept]).then(
results => {
const resolved = flatMap(results, r => r.value);
setAcceptLoading(false);
setResolvedAccept(resolved);
setTimeout(() => {
// give the resolved accept a full JS cycle to update before allowing actionability on the dropzone
setAcceptLoading(false);
}, 0);
}
);
}
Expand Down

0 comments on commit 76ccd8b

Please sign in to comment.