Skip to content

Commit

Permalink
Link field: Don’t allow custom type by default
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbestle committed Feb 25, 2024
1 parent d984188 commit cda3dd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions config/fields/link.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
'file',
'email',
'tel',
'anchor',
'custom'
'anchor'
];
},
'value' => function (string|null $value = null) {
Expand Down
3 changes: 1 addition & 2 deletions tests/Form/Fields/LinkFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public function testDefaultProps()
'file',
'email',
'tel',
'anchor',
'custom'
'anchor'
], $field->options());
}
}

0 comments on commit cda3dd9

Please sign in to comment.