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
Really love this class - however, there is a small bug: when split_values=true, the two input (hidden) fields created for latitude and longitude receive the exact same ID. This is not allowed in HTML - but worse, it prevents using these fields for various additional JavaScript validations, extrapolations, etc.
I solved this by editing cmb-field-map.php and adding 'id' => $field->args( 'id' ) . '_longitude' (for example) to the $field_type_object->input array... so it's a simple fix...
Thanks,
Bira
The text was updated successfully, but these errors were encountered:
biranit
changed the title
must have unique ID for input fields
Bug: same ID for lat/long input fields
Dec 30, 2015
Hi,
Really love this class - however, there is a small bug: when split_values=true, the two input (hidden) fields created for latitude and longitude receive the exact same ID. This is not allowed in HTML - but worse, it prevents using these fields for various additional JavaScript validations, extrapolations, etc.
I solved this by editing cmb-field-map.php and adding 'id' => $field->args( 'id' ) . '_longitude' (for example) to the $field_type_object->input array... so it's a simple fix...
Thanks,
Bira
The text was updated successfully, but these errors were encountered: