Skip to content

Commit

Permalink
fix: allow AdvancedMarker to accept space-separated multiple class na…
Browse files Browse the repository at this point in the history
…mes (#143)
  • Loading branch information
shuuji3 authored Jan 5, 2024
1 parent f194ddb commit eab53e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/advanced-marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function useAdvancedMarker(props: AdvancedMarkerProps) {
// create container for marker content if there are children
if (numChilds > 0) {
const el = document.createElement('div');
if (className) el.classList.add(className);
if (className) el.className = className;

newMarker.content = el;

Expand Down

0 comments on commit eab53e2

Please sign in to comment.