diff --git a/includes/htmlform/fields/HTMLFormFieldCloner.php b/includes/htmlform/fields/HTMLFormFieldCloner.php
index 8ee5c8dfa13..c8e6794cb83 100644
--- a/includes/htmlform/fields/HTMLFormFieldCloner.php
+++ b/includes/htmlform/fields/HTMLFormFieldCloner.php
@@ -367,6 +367,7 @@ class HTMLFormFieldCloner extends HTMLFormField {
'id' => Sanitizer::escapeIdForAttribute( "{$this->mID}--$key--delete" ),
'cssclass' => 'mw-htmlform-cloner-delete-button',
'default' => $this->getMessage( $label )->text(),
+ 'disabled' => $this->mParams['disabled'] ?? false,
], $this->mParent );
return $field;
}
@@ -381,6 +382,7 @@ class HTMLFormFieldCloner extends HTMLFormField {
'id' => Sanitizer::escapeIdForAttribute( "{$this->mID}--create" ),
'cssclass' => 'mw-htmlform-cloner-create-button',
'default' => $this->getMessage( $label )->text(),
+ 'disabled' => $this->mParams['disabled'] ?? false,
], $this->mParent );
}