Skip to content

Commit

Permalink
refactor: set openstreetmap class on container instead
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Mar 5, 2025
1 parent 9bd907f commit 724fd35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/php/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function render_field($field) {
$id = $this->mapId . '-' . self::$mapIndex;

?>
<div class="acf-openstreetmap" data-js-openstreetmap-field>
<div class="acf-openstreetmap openstreetmap" data-js-openstreetmap-field>
<input type="hidden" name="<?php echo esc_attr($field['name']); ?>" data-js-hidden-field value="<?php echo esc_attr($field['value']); ?>" id="acf-openstreetmap-hidden-<?php echo $id ?>"></input>

<?php $this->addEditOverlay($id) ?>
Expand All @@ -72,7 +72,7 @@ private function addMap($id = '')
{
?>
<div
class="acf-openstreetmap__map openstreetmap"
class="acf-openstreetmap__map"
data-js-openstreetmap-map
id="map-<?php $id ?>"
style="position: unset; height: 700px; background: #f0f0f0;">
Expand Down

0 comments on commit 724fd35

Please sign in to comment.