We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inside the gPlacesAutocomplete init code, the drawer element is appended to body: https://github.com/kuhnza/angular-google-places-autocomplete/blob/master/src/autocomplete.js#L88
gPlacesAutocomplete
However, upon $destroy of the gPlacesAutocomplete element, there should be cleanup logic to remove that element from <body> via element.remove().
$destroy
<body>
element.remove()
The code should be updated as such:
function initAutocompleteDrawer() { // existing code... scope.$on('$destroy', function() { $drawer.remove(); }); }
The text was updated successfully, but these errors were encountered:
scope needs to be $scope then +1 confirm this fixes #42
scope
$scope
Sorry, something went wrong.
No branches or pull requests
Inside the
gPlacesAutocomplete
init code, the drawer element is appended to body: https://github.com/kuhnza/angular-google-places-autocomplete/blob/master/src/autocomplete.js#L88However, upon
$destroy
of thegPlacesAutocomplete
element, there should be cleanup logic to remove that element from<body>
viaelement.remove()
.The code should be updated as such:
The text was updated successfully, but these errors were encountered: