File tree Expand file tree Collapse file tree 3 files changed +1
-21
lines changed
Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -1553,12 +1553,8 @@ var geocoderEvents = {
15531553 }
15541554
15551555 this . control = new mapbox_gl_geocoder_root_mapbox_gl_geocoder_default . a ( this . $props ) ;
1556- this . control . on ( "results" , this . $_updateInput ) ;
15571556 this . $_deferredMount ( ) ;
15581557 } ,
1559- beforeDestroy : function beforeDestroy ( ) {
1560- this . control . off ( "results" , this . $_updateInput ) ;
1561- } ,
15621558 methods : {
15631559 $_deferredMount : function $_deferredMount ( ) {
15641560 this . map . addControl ( this . control , this . position ) ;
@@ -1588,12 +1584,6 @@ var geocoderEvents = {
15881584 type : eventName
15891585 } , eventData ) ;
15901586 } ,
1591- $_updateInput : function $_updateInput ( results ) {
1592- if ( ! this . initial ) {
1593- var input = results . query ? results . query . join ( " " ) : "" ;
1594- this . $emit ( "update:input" , input ) ;
1595- }
1596- } ,
15971587 query : function query ( _query ) {
15981588 if ( this . control ) {
15991589 this . $emit ( "update:input" , _query ) ;
Original file line number Diff line number Diff line change @@ -1562,12 +1562,8 @@ var geocoderEvents = {
15621562 }
15631563
15641564 this . control = new mapbox_gl_geocoder_root_mapbox_gl_geocoder_default . a ( this . $props ) ;
1565- this . control . on ( "results" , this . $_updateInput ) ;
15661565 this . $_deferredMount ( ) ;
15671566 } ,
1568- beforeDestroy : function beforeDestroy ( ) {
1569- this . control . off ( "results" , this . $_updateInput ) ;
1570- } ,
15711567 methods : {
15721568 $_deferredMount : function $_deferredMount ( ) {
15731569 this . map . addControl ( this . control , this . position ) ;
@@ -1597,12 +1593,6 @@ var geocoderEvents = {
15971593 type : eventName
15981594 } , eventData ) ;
15991595 } ,
1600- $_updateInput : function $_updateInput ( results ) {
1601- if ( ! this . initial ) {
1602- var input = results . query ? results . query . join ( " " ) : "" ;
1603- this . $emit ( "update:input" , input ) ;
1604- }
1605- } ,
16061596 query : function query ( _query ) {
16071597 if ( this . control ) {
16081598 this . $emit ( "update:input" , _query ) ;
You can’t perform that action at this time.
0 commit comments