This right here – is brilliant. I’ve had so many issues with the current JS hooks (for instance, the remove hook fires every time I add a new row to a repeater, why?).
Also, the current remove hook fires BEFORE the row is even removed (due to the animation), but I need it to fire after since my JS removes the row numbers and replaces them with icons and the row numbers get regenerated AFTER the animation.
IMO, there’s a room for many improvements in the JS hooks. Not only adding missing hooks, but also providing more data (like a previous input value, field name, etc) in the callback function would be welcome.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users