urre / acf-fold-flexible Goto Github PK
View Code? Open in Web Editor NEWACF Fold Flexible Content
ACF Fold Flexible Content
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
Hey! Awesome plugin, however I noticed that if you click directly on the arrow icon, the field doesn't toggle (although the icon does).
I've recorded an example:
https://www.dropbox.com/s/rnfvnx8uehsqz48/acf_fold_flex_bug.mov?dl=0
If so, how can I do this please.
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:
Section 6 is ok.
Section 7 is closed but highlighted.
Section 8 is open but not highlighted.
This doesn't seem to work with ACF pro. Would be nice to see some support for it :)
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() {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.