File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/vuetify/src/directives/touch Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ function mounted (el: HTMLElement, binding: TouchDirectiveBinding) {
120
120
const options = value ?. options ?? { passive : true }
121
121
const uid = binding . instance ?. $ . uid // TODO: use custom uid generator
122
122
123
- if ( ! target || ! uid ) return
123
+ if ( ! target || uid === undefined ) return
124
124
125
125
const handlers = createHandlers ( binding . value )
126
126
@@ -136,7 +136,7 @@ function unmounted (el: HTMLElement, binding: TouchDirectiveBinding) {
136
136
const target = binding . value ?. parent ? el . parentElement : el
137
137
const uid = binding . instance ?. $ . uid
138
138
139
- if ( ! target ?. _touchHandlers || ! uid ) return
139
+ if ( ! target ?. _touchHandlers || uid === undefined ) return
140
140
141
141
const handlers = target . _touchHandlers [ uid ]
142
142
You can’t perform that action at this time.
0 commit comments