Skip to content

Commit 9c9a065

Browse files
committed
Update changelog with latest changes and Form fixes
1 parent 7566b5c commit 9c9a065

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Upcoming...
2+
3+
* Fix an issue with top right header where icons and tooltips were not using the proper API and props
4+
* Create script to create new theme based on Carbon
5+
* Rename `Date` filter to `DateRange`
6+
* Fix the fuzzy behavior of the `DateRange` filter, making it more explicit
7+
* Fixed/changed the `getSubmittedFormData()` function's behavior: it now supports cases when you have the same `name` several times in Form data (via `<input name="...">` for instance), so that the processed data is properly converted to an array.<br>Check the `src/lib/Crud/Form.test.ts` file for more details about how it works.
8+
19
# v0.17.0
210

311
- **BC Break**: Themes are now separate from the lib, and the default Carbon theme was moved to a `themes/svelte/carbon` subdirectory for now. The goal is to be able to use other kind of themes in the future.

src/lib/Crud/Form.test.ts

+17
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,23 @@ describe('Submitted form data', () => {
4646
},
4747
testOptions
4848
);
49+
50+
it(
51+
'can handle input containing the same key more than once',
52+
() => {
53+
const submitted = getSubmittedFormData(
54+
mockSubmitEvent([
55+
['title', 'First title'],
56+
['title', 'Second title'],
57+
])
58+
);
59+
60+
expect(submitted).toStrictEqual({
61+
title: ['First title', 'Second title'],
62+
});
63+
},
64+
testOptions
65+
);
4966
});
5067

5168
function mockSubmitEvent(submittedData: Array<[string, string]> = []) {

0 commit comments

Comments
 (0)