File tree 2 files changed +12
-0
lines changed
core/src/components/toggle
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 76
76
< ion-toggle slot ="start " style ="--border-radius: 0px;--handle-border-radius: 0px; " checked > </ ion-toggle >
77
77
</ ion-item >
78
78
79
+ < ion-item >
80
+ < ion-label > Stop Immediate Event Propagation</ ion-label >
81
+ < ion-toggle slot ="start " checked id ="eventPropagation "> </ ion-toggle >
82
+ </ ion-item >
83
+
79
84
</ ion-list >
80
85
81
86
121
126
var isTrue = el [ prop ] ? false : true ;
122
127
el [ prop ] = isTrue ;
123
128
}
129
+
130
+ document . getElementById ( 'eventPropagation' ) . addEventListener ( 'click' , ( evt ) => {
131
+ evt . stopImmediatePropagation ( ) ;
132
+ console . log ( 'clicked' ) ;
133
+ } ) ;
124
134
</ script >
125
135
126
136
</ ion-app >
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ label {
53
53
align-items : center ;
54
54
55
55
opacity : 0 ;
56
+
57
+ pointer-events : none ;
56
58
}
57
59
58
60
input {
You can’t perform that action at this time.
0 commit comments