@abgov/jsonforms-components 2.43.6 → 2.43.7
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/index.esm.js +4 -4
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -6867,7 +6867,7 @@ const Dropdown = props => {
|
|
|
6867
6867
|
const [inputText, setInputText] = useState(selected);
|
|
6868
6868
|
const prevCountRef = useRef(props.items);
|
|
6869
6869
|
const trailingIcon = isOpen ? 'chevron-up' : 'chevron-down';
|
|
6870
|
-
const textInputName = `dropdown-${label}`;
|
|
6870
|
+
const textInputName = `dropdown-${label}-${id}`;
|
|
6871
6871
|
const textInput = (_document$getElements = document.getElementsByName(textInputName)[0]) != null ? _document$getElements : null;
|
|
6872
6872
|
const PREFIX = 'jsonforms-dropdown';
|
|
6873
6873
|
useEffect(() => {
|
|
@@ -7040,7 +7040,7 @@ const Dropdown = props => {
|
|
|
7040
7040
|
},
|
|
7041
7041
|
children: jsx(GoabInput, {
|
|
7042
7042
|
disabled: !enabled,
|
|
7043
|
-
name: `dropdown-${label}`,
|
|
7043
|
+
name: `dropdown-${label}-${id}`,
|
|
7044
7044
|
width: "100%",
|
|
7045
7045
|
value: inputText,
|
|
7046
7046
|
testId: `${id}-input`,
|
|
@@ -7757,7 +7757,7 @@ const EnumSelect = props => {
|
|
|
7757
7757
|
enabled: enabled,
|
|
7758
7758
|
selected: typeof data === 'object' ? ___default.get(data, valuePath) : data,
|
|
7759
7759
|
width: width,
|
|
7760
|
-
id: `jsonforms-${
|
|
7760
|
+
id: `jsonforms-${path}-dropdown`,
|
|
7761
7761
|
label: label,
|
|
7762
7762
|
isAutoCompletion: autoCompletion,
|
|
7763
7763
|
onChange: value => {
|
|
@@ -7769,7 +7769,7 @@ const EnumSelect = props => {
|
|
|
7769
7769
|
handleChange(path, value);
|
|
7770
7770
|
}
|
|
7771
7771
|
}
|
|
7772
|
-
}, `jsonforms-${
|
|
7772
|
+
}, `jsonforms-${path}-dropdown`)
|
|
7773
7773
|
});
|
|
7774
7774
|
};
|
|
7775
7775
|
const enumControl = props => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.43.
|
|
3
|
+
"version": "2.43.7",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|