XF 2.3 Cookie storage question

JoyFreak

Well-known member
Has something changed in 2.3 to stop the following code from working? Seems cookie storage is no longer working in 2.3
Example code:
Code:
    <span class="jfneTrigger is-active"
          data-xf-click="toggle"
          data-target=".view-parent"
          data-xf-init="toggle-storage"
          data-active-class="show-cards"
          data-storage-key="_jfne"
          data-hide="true"
          data-storage-type="cookie"
          id="_jfne"
          data-xf-init="tooltip">
 
Last edited:
As ever check for cached JavaScript etc.

Failing that we'd probably need a more complete code example.

Note prior to the fix the toggleable areas on the admin control panel index were not working. Now they are.
 
As ever check for cached JavaScript etc.

Failing that we'd probably need a more complete code example.

Note prior to the fix the toggleable areas on the admin control panel index were not working. Now they are.
It doesn't add the data-active-class to other div classes used in other parts of the template (using template modification) like it did prior to 2.3 i.e.:
Code:
<div class="view-parent {{ !is_toggled('_jfne') ? 'show-cards' : '' }}"></div>

Edit: It doesn't actually toggle without a refresh of the page.
 
Top Bottom