pixelize-design-library 1.0.88 → 1.0.89
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.
|
@@ -40,7 +40,7 @@ function Select(_a) {
|
|
|
40
40
|
}, [options]);
|
|
41
41
|
var handleOnChange = function (event) {
|
|
42
42
|
var selectedValue = event.target.value;
|
|
43
|
-
var selectedOption = options.find(function (option) { return option.id ===
|
|
43
|
+
var selectedOption = options.find(function (option) { return option.id === selectedValue; });
|
|
44
44
|
if (selectedOption && onChange) {
|
|
45
45
|
onChange(selectedOption);
|
|
46
46
|
}
|