mustardBees/cmb_field_map

Unable to save coordinates in repeatable groups

pasqualevitiello opened this issue · 6 comments

Hello there,

I am currently using your custom field inside repeatable groups but it is unable to save coordinates. Would you please help me to figure out how to fix the issue?

Cheers,
-P

I've just noticed that the same issue also affects cmb-field-select2. I guess they need some adjustment to make them fully compatible with CMB2 ;)

Cheers,
-P

It'd be great if these fields could function in repeatable groups.

CMB does now appear to fire an 'add row' event. I'd appreciate any help getting this working.

I assume this is still an issue?

What needs to be done to fix this?

I have created a repeatable-groups branch. Could you guys test it out? Any feedback greatly appreciated.

Thank you for the update @mustardBees. I was in the process of addressing this same issue, but your repeatable-groups branch is functioning correctly.

  • setup_pw_map function is correctly reinitialized on cmb2_add_row event
  • name attributes of hidden input fields are populated with correct value

I can verify that each map instance works correctly and that the coordinates are saved and retrievable.

Thank you for resolving the issue.

Thanks for taking a look @ramiroazar. I've just merged this in and released v2.1.0.