bencarr / statamic-hyperlink

Hyperlink is a Statamic addon that expands the default Link fieldtype and allows you to store link text and target options alongside the link destination.
https://statamic.com/addons/bencarr/hyperlink
3 stars 1 forks source link

Issues selecting link type when used in a nested replicator #22

Open aaronbushnell opened 1 week ago

aaronbushnell commented 1 week ago

I'm seeing some oddities with the Hyperlink field and I think it might be when it's used in a nested replicator? I can share my site content if necessary for this one!

https://github.com/bencarr/statamic-hyperlink/assets/315202/5b10c11b-abbf-43a9-ac9c-5d591af54142

bencarr commented 1 week ago

Hmm, any console errors that might lend some insight? And which version of Statamic?

Did a quick test locally and I'm not seeing an issue in a Replicator → Replicator → Hyperlink field setup, but might be something more specific than that.

aaronbushnell commented 1 week ago

Hey @bencarr, this is the latest version of Statamic (5.11) but there's no console errors or logs that seem to be cropping up with this!

Here's when I see it:

Happy to send you anything that might help with debugging!

bencarr commented 4 days ago

Can you drop me your composer.json? I'm wondering if it's a conflict with another addon

aaronbushnell commented 4 days ago

Ah, you know what, @bencarr — I think I'm closer to the root cause on this one. I tried pairing down my composer.json to just your addon and Statamic but had no luck.

What does seem to be related though is we have our Replicator blocks (and the nested ones) to be collapsed by default. Disabling that fixes this! Does the collapsed behavior prevent this from working?

bencarr commented 3 days ago

Good catch! Certainly not intentional. Let me take a closer look now that I can reproduce it.