I tried the dev version with a site that utilises the paragraphs module and found I was losing data while using the ajax open/close paragraph item functionality on the node edit form.

I have checked that this does not happen with other themes, including the stable version of adminimal.

The paragraphs module provides an entity reference field and can embed those entity edit forms into the node form. It has the ability to show each paragraph entity in a 'closed' (not a form, just the values) or 'open' (edit form) way.

When using the dev version of adminimal theme, clicking open on one works. But then clicking open on the next field shows *two* "Please wait" throbber messages, and after that all ajax buttons result in duplicate actions, which seems to somehow result in blanking data. What makes it worse (although this is specific to the paragraphs module, I suspect) is that this is saved instantly, so even without pressing save, data is lost.

Perhaps there's something about an attachBehaviours call that's doing it twice?

Comments

ANDiTKO’s picture

Priority: Critical » Normal
lmeurs’s picture

Same here with a regular file upload field. This probably has to do with the wave effect of the experimental material skin: when I comment out Waves.displayEffect(); in skins/material/material.js it does not occur anymore.

supermoos’s picture

Seeing the same problem here, but when commenting out Waves.displayEffect(); it also messes up the padding of buttons.

ANDiTKO’s picture

Status: Active » Closed (fixed)

I removed the waves effect for the input html elements. Input element was not being able to get the waves effect so it had to be wrapped within and <i> tag. This fixed the waves related bugs but it still need work. I have to find a way to re-produce this effect properly. I was able to change the button code with theme_button() hook but that messed other buttons too.

Temp fix is committed to the latest version. Expect updates in future.
Im closing this issue because it no longer "Causes strange double-ajax that lose data", but the wave effect is gone in some cases.

Thanks for your time and for using Adminimal!