diff --git a/resources/js/components/ImageHotspots.vue b/resources/js/components/ImageHotspots.vue
index d6ece38..9f7ff5a 100644
--- a/resources/js/components/ImageHotspots.vue
+++ b/resources/js/components/ImageHotspots.vue
@@ -29,27 +29,27 @@
-
-
-
-
+ class="replicator-set-body publish-fields @container"
+ v-show="isOpen(index)"
+ >
diff --git a/src/Tags/HotSpotImageTag.php b/src/Tags/HotSpotImageTag.php
index 0fd05d4..10da9e3 100644
--- a/src/Tags/HotSpotImageTag.php
+++ b/src/Tags/HotSpotImageTag.php
@@ -7,35 +7,35 @@
class HotSpotImageTag extends Tags
{
- protected static $handle = 'image_hot_spots';
+ protected static $handle = 'image_hot_spots';
- public static function render(...$arguments): string
- {
- return '';
- }
+ public static function render(...$arguments): string
+ {
+ return '';
+ }
- public function index()
- {
- try {
- $field = $this->params->get('field') ?? null;
+ public function index()
+ {
+ try {
+ $field = $this->params->get('field') ?? null;
- if (!$field) {
- return '';
- }
+ if (!$field) {
+ return '';
+ }
- $data = $this->context->get($field)->value();
+ $data = $this->context->get($field)->value();
- if (!$data) {
- return '';
- }
+ if (!$data) {
+ return '';
+ }
- return [
- 'image' => $data['imageFile'],
- 'hotspots' => $data['hotspots'],
- ];
+ return [
+ 'image' => $data['imageFile'],
+ 'hotspots' => $data['hotspots'],
+ ];
- } catch (\Exception $e) {
- return '';
- }
- }
+ } catch (\Exception $e) {
+ return '';
+ }
+ }
}