aria-ease 1.3.2 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aria-ease",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Out of the box utility accessibility package to develop production ready applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@ export function handleKeyPress(event, elementItems, elementItemIndex, elementDiv
24
24
  event.preventDefault();
25
25
  if (elementDiv && triggerButton) {
26
26
  (getComputedStyle(elementDiv).display === 'block') ?
27
- triggerButton.click() :
27
+ elementDiv.style.display = 'none' :
28
28
  null;
29
29
  triggerButton.focus();
30
30
  }
@@ -24,7 +24,7 @@ export function handleKeyPress(event: KeyboardEvent, elementItems: NodeListOfHTM
24
24
  event.preventDefault();
25
25
  if(elementDiv && triggerButton) {
26
26
  (getComputedStyle(elementDiv).display === 'block') ?
27
- triggerButton.click() :
27
+ elementDiv.style.display = 'none':
28
28
  null
29
29
  triggerButton.focus()
30
30
  }