Skip to content

Commit 99afb6a

Browse files
committed
Define reserved attributes
1 parent 00f81fd commit 99afb6a

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

wcfsetup/install/files/lib/system/form/builder/field/GoogleMapsFormField.class.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ final class GoogleMapsFormField extends AbstractFormField implements
2020
IImmutableFormField,
2121
IPlaceholderFormField
2222
{
23-
use TAttributeFormField;
23+
use TInputAttributeFormField {
24+
getReservedFieldAttributes as private getDefaultReservedFieldAttributes;
25+
}
2426
use TAutoFocusFormField;
2527
use TCssClassFormField;
2628
use TImmutableFormField;
@@ -44,6 +46,21 @@ public function __construct()
4446
$this->addFieldClass('long');
4547
}
4648

49+
/**
50+
* @return string[]
51+
*/
52+
protected static function getReservedFieldAttributes(): array
53+
{
54+
return \array_merge(
55+
static::getDefaultReservedFieldAttributes(),
56+
[
57+
'data-google-maps-geocoding-store',
58+
'data-google-maps-geocoding',
59+
'data-google-maps-marker',
60+
]
61+
);
62+
}
63+
4764
#[\Override]
4865
public function readValue()
4966
{

0 commit comments

Comments
 (0)