File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,10 @@ export default {
120120 this . mapbox . accessToken = this . accessToken ;
121121 }
122122 this . control = new MapboxGeocoder ( this . $props ) ;
123- this . control . on ( "results" , this . $_updateInput ) ;
124123
125124 this . $_deferredMount ( ) ;
126125 } ,
127126
128- beforeDestroy ( ) {
129- this . control . off ( "results" , this . $_updateInput ) ;
130- } ,
131-
132127 methods : {
133128 $_deferredMount ( ) {
134129 this . map . addControl ( this . control , this . position ) ;
@@ -153,13 +148,6 @@ export default {
153148 return this . $_emitSelfEvent ( { type : eventName } , eventData ) ;
154149 } ,
155150
156- $_updateInput ( results ) {
157- if ( ! this . initial ) {
158- const input = results . query ? results . query . join ( " " ) : "" ;
159- this . $emit ( "update:input" , input ) ;
160- }
161- } ,
162-
163151 query ( query ) {
164152 if ( this . control ) {
165153 this . $emit ( "update:input" , query ) ;
You can’t perform that action at this time.
0 commit comments