cloned group autocomplete not working after updating post

Support MB Geolocation cloned group autocomplete not working after updating postResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9159
    mundeeemundeee
    Participant

    autocomplete + binding in a cloned group with geolocation field works fine when used on the inital post, but after saving the post and then creating another cloned group, autocomplete stops working.

    I suspect the problem is #wpbody in mb-geo.js, Location.init() is not getting called anymore.

    $('#wpbody').on('clone_completed', function () 
        {
            Location.init();
        });

    on a quick quest to find the problem, I tried $(document).on(..) and it seems to work.
    I don't have any other clonable groups in my metaboxes, so not sure about further implications (and it's quite late over here).
    any better solutions?

    #9200
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. Let me try to fix it.

    #10122
    yomisimieyomisimie
    Participant

    Hello, I too had this problem and I found the solution. Looked into the clone.js code and found that the ending of clone has been changed to: "after_clone". I updated in my Geolocation JS and works fine. Please update, thank you!

    #10217
    Anh TranAnh Tran
    Keymaster

    It's fixed in version 1.2.0. Please update!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.