Skip to content

Commit cc205a0

Browse files
authored
Merge pull request #2 from moreonion/prefill-exclude
Exclude payment forms from being prefilled by webform_prefill.
2 parents 95f28b5 + 2bab6de commit cc205a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Component.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ public function render(&$element, &$form, &$form_state) {
209209
'#type' => 'container',
210210
'#id' => 'payment-method-all-forms',
211211
'#weight' => 2,
212-
'#attributes' => array('class' => array('payment-method-all-forms')),
212+
'#attributes' => ['class' => [
213+
'payment-method-all-forms',
214+
'webform-prefill-exclude',
215+
]],
213216
);
214217

215218
if (!count($pmid_options)) {

0 commit comments

Comments
 (0)