Git Product home page Git Product logo

acf-fold-flexible's People

Contributors

urre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acf-fold-flexible's Issues

Icons "not working"?

Hey! Seems to be an issue with the icons on the foldable fields in the latest versions of your plugin + ACF Pro.

They're all showing by default, and on toggling a field they all disappear.

Uploaded a video here: http://quick.as/22jzcpej2

Advanced Custom Fields PRO v5.3.10
ACF Fold Flexible Content v1.3.1

Collapse sometimes doesn't work

When clicking on the header area, sometimes the field doesn't hide its content. The header gets gray and a plus icon appears though.

selection_162

Section highlighted when section is closed

Sometimes, the active state of a section gets wrong. I think your plugin assumes that all sections are initially closed. But starting from ACF PRO v5 (I think), the open/closed states of the flexible content sections is saved. An open section will be kept open when reloading/updating the edit screen.

This screenshot illustrates the problem:
acf flex

Section 6 is ok.
Section 7 is closed but highlighted.
Section 8 is open but not highlighted.

Support for ACF PRO

This doesn't seem to work with ACF pro. Would be nice to see some support for it :)

Correct styling for newly added items

I don't have time to do a pull request, but I notice that the "open" class is not correctly added/removed from newly added fields when they are collapsed/expanded. (i.e. they always stay blue)

This could be fixed by passing a selector to on() at line 96 of acf-fold-flexible.admin.js:

$('.acf-postbox').on('click', '.acf-fc-layout-handle', function() {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.