Skip to content

Commit 1353190

Browse files
committed
update
1 parent 49eefcd commit 1353190

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Bulma/Field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct()
1717
public function setError(string $message): void
1818
{
1919
parent::setError($message);
20-
$this->removeClass('error');
20+
$this->removeClass('has-error');
2121
}
2222

2323
public function renderDom(\DOMDocument $doc): \DOMElement

src/Field.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ public function validate(): string
124124
public function setError(string $message): void
125125
{
126126
if ($message) {
127-
$this->addClass('error');
127+
$this->addClass('has-error');
128128
} else {
129-
$this->removeClass('error');
129+
$this->removeClass('has-error');
130130
}
131131
if ($this->label) {
132132
$this->label->setError($message);

0 commit comments

Comments
 (0)