| @@ -28,10 +28,12 @@ | ||
| 28 | 28 | $data = apply_filters('fluentform/rendering_field_data_' . $elementName, $data, $form); |
| 29 | 29 | |
| 30 | 30 | $rootName = $data['attributes']['name']; |
| 31 | 31 | $hasConditions = $this->hasConditions($data) ? 'has-conditions ' : ''; |
| 32 | - $data['attributes']['class'] .= ' ff-name-address-wrapper ' . $this->wrapperClass . ' ' . $hasConditions; | |
| 33 | - $data['attributes']['class'] = trim($data['attributes']['class']); | |
| 32 | + $data['attributes']['class'] = trim( | |
| 33 | + ArrayHelper::get($data, 'attributes.class', '') | |
| 34 | + . ' ff-name-address-wrapper ' . $this->wrapperClass . ' ' . $hasConditions | |
| 35 | + ); | |
| 34 | 36 | |
| 35 | 37 | $provider = ArrayHelper::get($data, 'settings.autocomplete_provider'); |
| 36 | 38 | $legacyGoogleEnable = ArrayHelper::get($data, 'settings.enable_g_autocomplete', 'no') === 'yes'; |
| 37 | 39 | $isLegacyProvider = !ArrayHelper::has($data, 'settings.autocomplete_provider'); |