funda-ui 1.0.605 → 1.0.607
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/Accordion/index.js
CHANGED
|
@@ -560,11 +560,14 @@ var Accordion = function Accordion(props) {
|
|
|
560
560
|
heightObserver = _useState4[0],
|
|
561
561
|
setHeightObserver = _useState4[1];
|
|
562
562
|
function handleClickItem(e) {
|
|
563
|
+
if (e.target.closest('.custom-accordion-header') === null) return;
|
|
564
|
+
if (animOK) return;
|
|
565
|
+
|
|
566
|
+
// DO NOT place it before the above code, otherwise it will cause the checkbox and radio controls to fail.
|
|
563
567
|
e.preventDefault();
|
|
568
|
+
|
|
564
569
|
//Prevents further propagation of the current event in the capturing and bubbling phases(if use `e.target`).
|
|
565
570
|
e.stopPropagation();
|
|
566
|
-
if (e.target.closest('.custom-accordion-header') === null) return;
|
|
567
|
-
if (animOK) return;
|
|
568
571
|
|
|
569
572
|
//
|
|
570
573
|
var reactDomEl = e.currentTarget;
|
|
@@ -560,11 +560,14 @@ var Accordion = function Accordion(props) {
|
|
|
560
560
|
heightObserver = _useState4[0],
|
|
561
561
|
setHeightObserver = _useState4[1];
|
|
562
562
|
function handleClickItem(e) {
|
|
563
|
+
if (e.target.closest('.custom-accordion-header') === null) return;
|
|
564
|
+
if (animOK) return;
|
|
565
|
+
|
|
566
|
+
// DO NOT place it before the above code, otherwise it will cause the checkbox and radio controls to fail.
|
|
563
567
|
e.preventDefault();
|
|
568
|
+
|
|
564
569
|
//Prevents further propagation of the current event in the capturing and bubbling phases(if use `e.target`).
|
|
565
570
|
e.stopPropagation();
|
|
566
|
-
if (e.target.closest('.custom-accordion-header') === null) return;
|
|
567
|
-
if (animOK) return;
|
|
568
571
|
|
|
569
572
|
//
|
|
570
573
|
var reactDomEl = e.currentTarget;
|
|
@@ -67,13 +67,15 @@ const Accordion = (props: AccordionProps) => {
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
function handleClickItem(e: React.MouseEvent) {
|
|
70
|
-
|
|
70
|
+
if ((e.target as any).closest('.custom-accordion-header') === null) return;
|
|
71
|
+
if ( animOK ) return;
|
|
72
|
+
|
|
73
|
+
// DO NOT place it before the above code, otherwise it will cause the checkbox and radio controls to fail.
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
|
|
71
76
|
//Prevents further propagation of the current event in the capturing and bubbling phases(if use `e.target`).
|
|
72
77
|
e.stopPropagation();
|
|
73
78
|
|
|
74
|
-
|
|
75
|
-
if ((e.target as any).closest('.custom-accordion-header') === null) return;
|
|
76
|
-
if ( animOK ) return;
|
|
77
79
|
|
|
78
80
|
//
|
|
79
81
|
const reactDomEl: any = e.currentTarget;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.607",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|