Sort + Static + Form Select not working on Safari

I am using FS Static to add some static cards into a CMS collection list. I am then using FS sort to sort these in date order and FS Custom Form Select to ensure all the cards are sorted in date order on page load.

This solution is working perfectly on desktop Chrome, Arc, Opera but isn’t working on mobile browsers or desktop Safari.

I’ve used the FS Attribute Support tool and the setup appears to be faultless.

FS Attribute Support link: Feed
Webflow staging link: Feed

Any ideas? @evekayser @Support-Luis :crossed_fingers:t2:

Hey @hi11! Can we try using the static callback instead of the sort callback? Just replace cmssort with cmsstatic.

We can also try with a button trigger instead of a select trigger, this way we do not have to wait for the custom select script to load.

No change with that I’m afraid. I’ve also tried removing FS Select and testing by manually clicking the button and the Static + Sort combo doesn’t seem to work in Safari at all.

Hhmm, interesting. If we delete the static script, does this work?

If so we can try adding the script after CMS Sort is done :thinking:

Something like this

<script>
  window.fsAttributes = window.fsAttributes || [];
  window.fsAttributes.push([
    'cmssort',
    (listInstances) => {
      console.log('cmssort Successfully loaded!');

      (() => {
        const src = 'https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsstatic@1/cmsstatic.js';
        let e = document.querySelector(`script[src='src']`);
        if (!e) {
          e = document.createElement('script');
          e.async = true;
          e.src = src;
          document.head.append(e);
        }
      })();
    },
  ]);
</script>

Hi Finsweet,

I’m experiencing the same issue. I implemented the static element, everything works well on all browsers except Safari. Were you aware of this bug?

https://preview.webflow.com/preview/perch-private?utm_medium=preview_link&utm_source=designer&utm_content=perch-private&preview=2e29e1d3721c84bd8fed760aba33f39c&pageId=664098be339c427a19e53fc1&locale=en&workflow=preview

Thanks,

Hey @francois! I am afraid I cannot replicate it on my end. The Static Item is added as the third element and then repeated every 12 elements.

Here is my view

And the safari version I am running