@dreamcommerce/aurora 2.6.10-2 → 2.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/packages/aurora/src/components/dropdown/components/select.js +1 -2
- package/build/cjs/packages/aurora/src/components/dropdown/components/select.js.map +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/select.js +1 -2
- package/build/esm/packages/aurora/src/components/dropdown/components/select.js.map +1 -1
- package/package.json +1 -1
|
@@ -45,14 +45,13 @@ selectedOptions, placeholder, onRemoveOptions, hasCloseIcon }) => {
|
|
|
45
45
|
*/
|
|
46
46
|
const { isOpen, toggleDropdown } = index.useDropdownContext();
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* filter options if there are more than one with the same value
|
|
49
49
|
*/
|
|
50
50
|
const filteredOptions = utilities.filterOptionDuplicatesByProperty(selectedOptions, 'value');
|
|
51
51
|
/**
|
|
52
52
|
* value for display purposes, its texts not actual values from options
|
|
53
53
|
*/
|
|
54
54
|
const value = filteredOptions.map((option) => option.text).join(', ');
|
|
55
|
-
console.log('value', value);
|
|
56
55
|
/**
|
|
57
56
|
* disabled options should have hidden inputs with values rendered
|
|
58
57
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -37,14 +37,13 @@ selectedOptions, placeholder, onRemoveOptions, hasCloseIcon }) => {
|
|
|
37
37
|
*/
|
|
38
38
|
const { isOpen, toggleDropdown } = useDropdownContext();
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* filter options if there are more than one with the same value
|
|
41
41
|
*/
|
|
42
42
|
const filteredOptions = filterOptionDuplicatesByProperty(selectedOptions, 'value');
|
|
43
43
|
/**
|
|
44
44
|
* value for display purposes, its texts not actual values from options
|
|
45
45
|
*/
|
|
46
46
|
const value = filteredOptions.map((option) => option.text).join(', ');
|
|
47
|
-
console.log('value', value);
|
|
48
47
|
/**
|
|
49
48
|
* disabled options should have hidden inputs with values rendered
|
|
50
49
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|