@uncinc/uncinc-react-kitchen-sink 2.8.25 → 2.8.26
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.
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Field } from 'formik';
|
|
4
4
|
import c from 'classnames';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
+
import ReactHtmlParser from 'react-html-parser';
|
|
6
7
|
import GenericFormElement from '../GenericFormElement';
|
|
7
8
|
import withMapping from '../../../Context/withMapping';
|
|
8
9
|
import { useExtendedFormikContext } from '../FormikWrapper';
|
|
@@ -73,7 +74,7 @@ export var Checkbox = function Checkbox(props) {
|
|
|
73
74
|
},
|
|
74
75
|
disabled: disabled,
|
|
75
76
|
className: className
|
|
76
|
-
})), title);
|
|
77
|
+
})), ReactHtmlParser(title));
|
|
77
78
|
}));
|
|
78
79
|
};
|
|
79
80
|
Checkbox.defaultProps = {
|
|
@@ -69,7 +69,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
69
69
|
});
|
|
70
70
|
} else {
|
|
71
71
|
var _value2 = value !== undefined ? value : defaultValue || '';
|
|
72
|
-
selectedOption = optionsTransformed.
|
|
72
|
+
selectedOption = optionsTransformed.filter(function (option) {
|
|
73
73
|
return option.value === _value2;
|
|
74
74
|
});
|
|
75
75
|
}
|