Skip to content

Commit 5e3a739

Browse files
committed
Merge remote-tracking branch '360disrupt/fix_uiview_autocomplete'
2 parents c982a10 + 287358d commit 5e3a739

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/coffee/directives/api/models/parent/search-box-parent-model.coffee

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ angular.module('uiGmapgoogle-maps.directives.api.models.parent')
5858
@listeners = @setEvents @gObject, @scope, @scope
5959
@$log.info @
6060

61+
@scope.$on '$stateChangeSuccess', =>
62+
@addToParentDiv() if @attrs.parentdiv?
63+
6164
@scope.$on '$destroy', =>
6265
@gObject = null
6366

@@ -66,7 +69,7 @@ angular.module('uiGmapgoogle-maps.directives.api.models.parent')
6669

6770
addToParentDiv: =>
6871
@parentDiv = angular.element document.getElementById(@scope.parentdiv)
69-
@parentDiv.append @input
72+
@parentDiv.append @input if !@parentDiv[0]?.firstChild?
7073

7174
createSearchBox: =>
7275
if @autocomplete

0 commit comments

Comments
 (0)