Skip to content

Commit eea078e

Browse files
johannesx75johannes.hammersen
andauthored
FIX ConfirmedPasswordField reports changes - even if no changes (#11859)
Co-authored-by: johannes.hammersen <[email protected]>
1 parent 24e8b54 commit eea078e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Forms/ConfirmedPasswordField.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ public function __construct(
164164

165165
// has to be called in constructor because Field() isn't triggered upon saving the instance
166166
if ($showOnClick) {
167-
$this->getChildren()->push($this->hiddenField = HiddenField::create("{$name}[_PasswordFieldVisible]"));
167+
$this->getChildren()->push(
168+
$this->hiddenField = HiddenField::create("{$name}[_PasswordFieldVisible]")
169+
->addExtraClass('no-change-track') // ignore in changetracker
170+
);
168171
}
169172

170173
// disable auto complete

0 commit comments

Comments
 (0)