ipfs / ipfs/ipfs-desktop

Import file modal doesn't stay open when switching apps

Open
#2,182 1 comment 0 reactions 0 assignees View on GitHub
effort/days help wanted kind/bug P2 status/ready topic/design-front-end
Dominant language
JavaScript
Stars
6.6k
Forks
903
Avg merge
4d 13h
Merged PRs (30d)
5

Description

- OS: macOS Monterey 12.4 (21F79)
- Version of IPFS Desktop: 0.21.0
- [UI v2.15.0](https://github.com/ipfs/ipfs-webui/releases/tag/v2.15.0)
- [Revision fadd900](https://github.com/ipfs/ipfs-webui/commit/fadd900)

**Describe the bug**
I was attempting to import a file from IPFS when I noticed this error because I had to switch back to my browser to copy the CID and name. After pasting one of the values, switching to the browser, copying the other value, and switching back to IPFS Desktop, the modal with the first value is still there, but immediately gets removed. This shouldn't happen.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to 'Files'
1. Click on 'Import'
1. Click on 'From IPFS'
1. Paste some value into either field
1. Switch focus to another app
1. Switch focus back to IPFS Desktop
2. Notice that the modal and originally entered value is gone.

**Expected behavior**
I expected the modal to remain there, with the value I initially entered.

This bug does not happen in ipfs-webui (tested at localhost:5001)

**Screenshots**
![ipfs_ipfs-desktop_issues_2182](https://user-images.githubusercontent.com/1173416/174675320-723750d5-ccc3-4a36-a722-df8db5e0de4c.gif)

**Additional context**
[error.log](https://github.com/ipfs/ipfs-desktop/files/8943529/error.log)

[combined.log](https://github.com/ipfs/ipfs-desktop/files/8943528/combined.log)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.