Custom Fields
Re-Envisioned
Support Meta Box Geolocation cloned group autocomplete not working after updating post

This topic contains 3 replies, has 3 voices, and was last updated by  Anh Tran 1 year, 4 months ago.

  • Creator
    Topic
  • #9159
    Resolved
    mundeee
    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #9200

    Anh Tran
    Keymaster

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

    #10122

    yomisimie
    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 Tran
    Keymaster

    It’s fixed in version 1.2.0. Please update!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.