Skip to content

Commit 0cbe588

Browse files
committed
fix rules form
1 parent 626b94d commit 0cbe588

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Fields/Base.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public function getForm(): array
2727

2828
public function getRulesForm(): array
2929
{
30-
return $this->getBaseFormSchema();
30+
return [
31+
...ValidationRulesSchema::make($this->getFieldType()),
32+
...VisibilityRulesSchema::make(),
33+
];
3134
}
3235

3336
protected function getBaseFormSchema(): array
@@ -47,8 +50,6 @@ protected function getBaseFormSchema(): array
4750
]),
4851
Grid::make(2)
4952
->schema([
50-
...ValidationRulesSchema::make($this->getFieldType()),
51-
...VisibilityRulesSchema::make(),
5253
TextInput::make('config.helperText')
5354
->live(onBlur: true)
5455
->label(__('Helper text')),

0 commit comments

Comments
 (0)