From bdcf1380ae56516e62a61f3c65277c9c944c9eb0 Mon Sep 17 00:00:00 2001 From: Oleksandr Hladchenko1 Date: Thu, 12 Dec 2024 09:49:54 +0100 Subject: [PATCH] UIDATIMP-1683: Trigger file selection window to open after click Choose other files to upload button --- CHANGELOG.md | 1 + src/components/ImportJobs/ImportJobs.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 828c3156c..0665b045f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * Allow central tenant to create filed mapping profile for Orders and Invoices. (UIDATIMP-1685) * Replace `_/proxy/tenants/${tenant}/modules` with `stripes.discovery.modules` object. (UIDATIMP-1686) * Populate "Existing records" field when create match profile. (UIDATIMP-1689) +* Trigger file selection window to open after click `Choose other files to upload` button. (UIDATIMP-1683) ## [8.0.2](https://github.com/folio-org/ui-data-import/tree/v8.0.2) (2024-11-21) diff --git a/src/components/ImportJobs/ImportJobs.js b/src/components/ImportJobs/ImportJobs.js index 403aa00ab..d3c10b04d 100644 --- a/src/components/ImportJobs/ImportJobs.js +++ b/src/components/ImportJobs/ImportJobs.js @@ -356,7 +356,8 @@ export class ImportJobs extends Component { cancelLabel={} onConfirm={() => { this.hideFilesExtensionsModal(); - openDialogWindow(); + // Ensure that any changes or state updates are completed before the dialog is opened + setTimeout(() => openDialogWindow(), 0); }} onCancel={this.hideFilesExtensionsModal} />