Electron Demo "Click here to select a file" does not load file properly. #1981
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1981
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When clicking on the button highlighted in red, the file prompt shows but the UI does not respond to the selected file.
The functionality highlighted in green works properly.
Tested with the example xlsx files here.
This is related to an API change somewhere between 1.7.5 and 9.
https://github.com/SheetJS/sheetjs/blob/master/demos/electron/index.js#L68 the code uses
electron.dialog.showOpenDialog
and grabs the result.The current version returns a promise https://www.electronjs.org/docs/api/dialog#dialogshowopendialogbrowserwindow-options
However 1.7.5 returned an array of strings https://github.com/electron/electron/blob/v1.7.5/docs/api/dialog.md
The easiest thing might be to change the call to
showOpenDialogSync
, adding a proper guard for the case that the dialog is canceled.