Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/google-maps/map-info-window/map-info-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {MapAnchorPoint} from '../map-anchor-point';
@Directive({
selector: 'map-info-window',
exportAs: 'mapInfoWindow',
host: {'style': 'display: none'},
})
export class MapInfoWindow implements OnInit, OnDestroy {
private readonly _googleMap = inject(GoogleMap);
Expand Down Expand Up @@ -104,6 +103,11 @@ export class MapInfoWindow implements OnInit, OnDestroy {
@Output() readonly infoWindowInitialized: EventEmitter<google.maps.InfoWindow> =
new EventEmitter<google.maps.InfoWindow>();

constructor() {
// Set through CSSOM rather than a host style attribute so it isn't blocked by a strict CSP `style-src`.
this._elementRef.nativeElement.style.display = 'none';
}

ngOnInit() {
if (this._googleMap._isBrowser) {
this._combineOptions()
Expand Down
Loading