contentoh-components-library 21.1.79 → 21.1.82

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.
@@ -108,7 +108,9 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
108
108
  slidePosition: "bottom-slide"
109
109
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
110
110
  buttonType: "general circular-button version-button",
111
- onClick: function onClick() {
111
+ onClick: function onClick(e) {
112
+ e.stopPropagation();
113
+ e.preventDefault();
112
114
  setShowVersionSelector(true);
113
115
  },
114
116
  label: "V".concat(version)
@@ -20,7 +20,6 @@ var useCloseModal = function useCloseModal(id) {
20
20
  var closeModal = function closeModal(e) {
21
21
  e.stopPropagation();
22
22
  e.preventDefault();
23
- console.log(e.target);
24
23
 
25
24
  if (!e.target.closest("#".concat(id)) && showModal) {
26
25
  document.removeEventListener("click", closeModal, false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.79",
3
+ "version": "21.1.82",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -76,7 +76,9 @@ export const StatusAsignationInfo = ({
76
76
  />
77
77
  <Button
78
78
  buttonType={"general circular-button version-button"}
79
- onClick={() => {
79
+ onClick={(e) => {
80
+ e.stopPropagation();
81
+ e.preventDefault();
80
82
  setShowVersionSelector(true);
81
83
  }}
82
84
  label={`V${version}`}
@@ -7,7 +7,6 @@ export const useCloseModal = (id) => {
7
7
  const closeModal = (e) => {
8
8
  e.stopPropagation();
9
9
  e.preventDefault();
10
- console.log(e.target);
11
10
  if (!e.target.closest(`#${id}`) && showModal) {
12
11
  document.removeEventListener("click", closeModal, false);
13
12
  setShowModal(false);