feat: Refactor setType method to use slug value for type

This commit is contained in:
Andras Bacsai committed 2024-10-07 12:12:05 +02:00
1 parent a725a6eaf2
commit a0532afb24
3 files changed
+10 -22

No files matched your search

-1
View File
@@ -257,7 +257,6 @@ class Select extends Component
public function setType(string $type)
{
$type = str($type)->lower()->slug()->value();
ray('type', $type);
if ($this->loading) {
return;
}