File tree Expand file tree Collapse file tree 14 files changed +30
-0
lines changed
packages/components/src/components Expand file tree Collapse file tree 14 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export default function DBButton(props: DBButtonProps) {
22
22
// jscpd:ignore-start
23
23
const state = useStore < DBButtonState > ( {
24
24
handleClick : ( event : ClickEvent < HTMLButtonElement > ) => {
25
+ event . stopPropagation ( ) ;
25
26
if ( props . onClick ) {
26
27
props . onClick ( event ) ;
27
28
}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export default function DBCard(props: DBCardProps) {
17
17
// jscpd:ignore-start
18
18
const state = useStore < DBCardState > ( {
19
19
handleClick : ( event : ClickEvent < HTMLElement > ) => {
20
+ event . stopPropagation ( ) ;
20
21
if ( props . onClick ) {
21
22
props . onClick ( event ) ;
22
23
}
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export default function DBCheckbox(props: DBCheckboxProps) {
85
85
}
86
86
} ,
87
87
handleChange : ( event : ChangeEvent < HTMLInputElement > ) => {
88
+ event . stopPropagation ( ) ;
88
89
if ( props . onChange ) {
89
90
props . onChange ( event ) ;
90
91
}
@@ -97,11 +98,13 @@ export default function DBCheckbox(props: DBCheckboxProps) {
97
98
state . handleValidation ( ) ;
98
99
} ,
99
100
handleBlur : ( event : InteractionEvent < HTMLInputElement > | any ) => {
101
+ event . stopPropagation ( ) ;
100
102
if ( props . onBlur ) {
101
103
props . onBlur ( event ) ;
102
104
}
103
105
} ,
104
106
handleFocus : ( event : InteractionEvent < HTMLInputElement > | any ) => {
107
+ event . stopPropagation ( ) ;
105
108
if ( props . onFocus ) {
106
109
props . onFocus ( event ) ;
107
110
}
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ export default function DBInput(props: DBInputProps) {
100
100
}
101
101
} ,
102
102
handleInput : ( event : InputEvent < HTMLInputElement > ) => {
103
+ event . stopPropagation ( ) ;
103
104
useTarget ( {
104
105
vue : ( ) => {
105
106
if ( props . input ) {
@@ -123,6 +124,7 @@ export default function DBInput(props: DBInputProps) {
123
124
state . handleValidation ( ) ;
124
125
} ,
125
126
handleChange : ( event : ChangeEvent < HTMLInputElement > ) => {
127
+ event . stopPropagation ( ) ;
126
128
if ( props . onChange ) {
127
129
props . onChange ( event ) ;
128
130
}
@@ -134,11 +136,13 @@ export default function DBInput(props: DBInputProps) {
134
136
state . handleValidation ( ) ;
135
137
} ,
136
138
handleBlur : ( event : InteractionEvent < HTMLInputElement > | any ) => {
139
+ event . stopPropagation ( ) ;
137
140
if ( props . onBlur ) {
138
141
props . onBlur ( event ) ;
139
142
}
140
143
} ,
141
144
handleFocus : ( event : InteractionEvent < HTMLInputElement > | any ) => {
145
+ event . stopPropagation ( ) ;
142
146
if ( props . onFocus ) {
143
147
props . onFocus ( event ) ;
144
148
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export default function DBLink(props: DBLinkProps) {
18
18
// jscpd:ignore-start
19
19
const state = useStore < DBLinkState > ( {
20
20
handleClick : ( event : ClickEvent < HTMLAnchorElement > ) => {
21
+ event . stopPropagation ( ) ;
21
22
if ( props . onClick ) {
22
23
props . onClick ( event ) ;
23
24
}
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ export default function DBNavigationItem(props: DBNavigationItemProps) {
50
50
}
51
51
} ,
52
52
handleClick : ( event : ClickEvent < HTMLButtonElement > | any ) => {
53
+ event . stopPropagation ( ) ;
53
54
if ( props . onClick ) {
54
55
props . onClick ( event ) ;
55
56
}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export default function DBNotification(props: DBNotificationProps) {
21
21
// jscpd:ignore-start
22
22
const state = useStore < DBNotificationState > ( {
23
23
handleClose : ( event : ClickEvent < HTMLButtonElement > | any ) => {
24
+ event . stopPropagation ( ) ;
24
25
if ( props . onClose ) {
25
26
props . onClose ( event ) ;
26
27
}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export default function DBRadio(props: DBRadioProps) {
30
30
initialized : false ,
31
31
_id : undefined ,
32
32
handleChange : ( event : ChangeEvent < HTMLInputElement > | any ) => {
33
+ event . stopPropagation ( ) ;
33
34
if ( props . onChange ) {
34
35
props . onChange ( event ) ;
35
36
}
@@ -40,11 +41,13 @@ export default function DBRadio(props: DBRadioProps) {
40
41
} ) ;
41
42
} ,
42
43
handleBlur : ( event : InteractionEvent < HTMLInputElement > | any ) => {
44
+ event . stopPropagation ( ) ;
43
45
if ( props . onBlur ) {
44
46
props . onBlur ( event ) ;
45
47
}
46
48
} ,
47
49
handleFocus : ( event : InteractionEvent < HTMLInputElement > | any ) => {
50
+ event . stopPropagation ( ) ;
48
51
if ( props . onFocus ) {
49
52
props . onFocus ( event ) ;
50
53
}
Original file line number Diff line number Diff line change @@ -95,11 +95,13 @@ export default function DBSelect(props: DBSelectProps) {
95
95
}
96
96
} ,
97
97
handleClick : ( event : ClickEvent < HTMLSelectElement > | any ) => {
98
+ event . stopPropagation ( ) ;
98
99
if ( props . onClick ) {
99
100
props . onClick ( event ) ;
100
101
}
101
102
} ,
102
103
handleInput : ( event : InputEvent < HTMLSelectElement > | any ) => {
104
+ event . stopPropagation ( ) ;
103
105
useTarget ( {
104
106
vue : ( ) => {
105
107
if ( props . input ) {
@@ -123,6 +125,7 @@ export default function DBSelect(props: DBSelectProps) {
123
125
state . handleValidation ( ) ;
124
126
} ,
125
127
handleChange : ( event : ChangeEvent < HTMLSelectElement > | any ) => {
128
+ event . stopPropagation ( ) ;
126
129
if ( props . onChange ) {
127
130
props . onChange ( event ) ;
128
131
}
@@ -134,11 +137,13 @@ export default function DBSelect(props: DBSelectProps) {
134
137
state . handleValidation ( ) ;
135
138
} ,
136
139
handleBlur : ( event : InteractionEvent < HTMLSelectElement > | any ) => {
140
+ event . stopPropagation ( ) ;
137
141
if ( props . onBlur ) {
138
142
props . onBlur ( event ) ;
139
143
}
140
144
} ,
141
145
handleFocus : ( event : InteractionEvent < HTMLSelectElement > | any ) => {
146
+ event . stopPropagation ( ) ;
142
147
if ( props . onFocus ) {
143
148
props . onFocus ( event ) ;
144
149
}
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export default function DBSwitch(props: DBSwitchProps) {
40
40
default : false
41
41
} ) ,
42
42
handleChange : ( event : ChangeEvent < HTMLInputElement > ) => {
43
+ event . stopPropagation ( ) ;
43
44
if ( props . onChange ) {
44
45
props . onChange ( event ) ;
45
46
}
@@ -54,11 +55,13 @@ export default function DBSwitch(props: DBSwitchProps) {
54
55
} ) ;
55
56
} ,
56
57
handleBlur : ( event : InteractionEvent < HTMLInputElement > ) => {
58
+ event . stopPropagation ( ) ;
57
59
if ( props . onBlur ) {
58
60
props . onBlur ( event ) ;
59
61
}
60
62
} ,
61
63
handleFocus : ( event : InteractionEvent < HTMLInputElement > ) => {
64
+ event . stopPropagation ( ) ;
62
65
if ( props . onFocus ) {
63
66
props . onFocus ( event ) ;
64
67
}
You can’t perform that action at this time.
0 commit comments