@abgov/jsonforms-components 1.42.1 → 1.42.2
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 +3 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4541,14 +4541,12 @@ const Dropdown = props => {
|
|
|
4541
4541
|
}, [isEqual(props.items, prevCountRef.current)]);
|
|
4542
4542
|
useEffect(() => {
|
|
4543
4543
|
if (textInput) {
|
|
4544
|
-
textInput.addEventListener('click', inputTextOnClick);
|
|
4545
4544
|
textInput.addEventListener('keydown', handleKeyDown);
|
|
4546
4545
|
textInput.addEventListener('blur', handleTextInputOnBlur);
|
|
4547
4546
|
}
|
|
4548
4547
|
document.addEventListener('keydown', handleDocumentKeyDown);
|
|
4549
4548
|
return () => {
|
|
4550
4549
|
if (textInput) {
|
|
4551
|
-
textInput.removeEventListener('click', inputTextOnClick);
|
|
4552
4550
|
textInput.removeEventListener('keydown', handleKeyDown);
|
|
4553
4551
|
textInput.removeEventListener('blur', handleTextInputOnBlur);
|
|
4554
4552
|
}
|
|
@@ -4569,9 +4567,6 @@ const Dropdown = props => {
|
|
|
4569
4567
|
}
|
|
4570
4568
|
}
|
|
4571
4569
|
};
|
|
4572
|
-
const inputTextOnClick = e => {
|
|
4573
|
-
setIsOpen(previousIsOpen => !previousIsOpen);
|
|
4574
|
-
};
|
|
4575
4570
|
const updateDropDownData = item => {
|
|
4576
4571
|
onChange(item.value);
|
|
4577
4572
|
setSelectedOption(item.value);
|
|
@@ -4696,6 +4691,9 @@ const Dropdown = props => {
|
|
|
4696
4691
|
"data-testid": id,
|
|
4697
4692
|
children: [jsx(GoADropdownTextbox, {
|
|
4698
4693
|
isOpen: isOpen,
|
|
4694
|
+
onClick: e => {
|
|
4695
|
+
setIsOpen(previousIsOpen => !previousIsOpen);
|
|
4696
|
+
},
|
|
4699
4697
|
children: jsx(GoAInput, {
|
|
4700
4698
|
disabled: !enabled,
|
|
4701
4699
|
name: `dropdown-${label}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.42.
|
|
3
|
+
"version": "1.42.2",
|
|
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",
|