Commit 8586158
authored
feat(download-json-report): Don't clear export description on dropdown open (#4788)
#### Details
Currently, opening the export dropdown clears the user's description in the export dialog. If they then download an export, the description will be there. If they don't download at that moment, the description is lost. This PR updates the behavior to be in line with current production behavior wherein the user's description is not cleared until they start a new assessment.
Before:

After:

##### Motivation
Fixes unwanted behavior
##### Context
I considered clearing the description on dialog close, but that would not line up with production behavior.
#### Pull request checklist
<!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox -->
- [n/a] Addresses an existing issue: #0000
- [x] Ran `yarn fastpass`
- [x] Added/updated relevant unit test(s) (and ran `yarn test`)
- [x] Verified code coverage for the changes made. Check coverage report at: `<rootDir>/test-results/unit/coverage`
- [x] PR title *AND* final merge commit title both start with a semantic tag (`fix:`, `chore:`, `feat(feature-name):`, `refactor:`). See `CONTRIBUTING.md`.
- [x] (UI changes only) Added screenshots/GIFs to description above
- [n/a] (UI changes only) Verified usability with NVDA/JAWS1 parent 26f0b98 commit 8586158
File tree
2 files changed
+1
-2
lines changed- src
- DetailsView/components
- tests/unit/tests/DetailsView/components/__snapshots__
2 files changed
+1
-2
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments