You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jQuery should catch on click event when "cf-complex__inserter-button" button is clicked.
Actual Behavior
Event is only catched when second item is added. Not when first item is added.
Container definition
Post meta container including one complex field and one subfield.
Steps to Reproduce the Problem
Create container and add jQuery on click event handler to the new group click:
$(document).on('click', '.cf-container-post-meta .cf-complex__inserter-button', function () {
console.log('click1');
});
Then you will see that this code only runs when the second item is added to the complex group.
Not on the first item added.
Can this be fixed? Thanks
The text was updated successfully, but these errors were encountered:
henrik-dons
changed the title
Bug: jQuery event only fires after adding second item in group, not on first item
Bug: jQuery event only fires after adding second item to complex group; not on first item
Mar 21, 2024
Version
Expected Behavior
jQuery should catch on click event when "cf-complex__inserter-button" button is clicked.
Actual Behavior
Event is only catched when second item is added. Not when first item is added.
Container definition
Post meta container including one complex field and one subfield.
Steps to Reproduce the Problem
Create container and add jQuery on click event handler to the new group click:
$(document).on('click', '.cf-container-post-meta .cf-complex__inserter-button', function () {
console.log('click1');
});
Then you will see that this code only runs when the second item is added to the complex group.
Not on the first item added.
Can this be fixed? Thanks
The text was updated successfully, but these errors were encountered: