fix: random generated uuid will be full length (not 7 characters)
This commit is contained in:
@@ -30,7 +30,7 @@ class Datalist extends Component
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
if (is_null($this->id)) {
|
||||
$this->id = new Cuid2(7);
|
||||
$this->id = new Cuid2();
|
||||
}
|
||||
if (is_null($this->name)) {
|
||||
$this->name = $this->id;
|
||||
|
||||
@@ -27,7 +27,7 @@ class Input extends Component
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
if (is_null($this->id)) {
|
||||
$this->id = new Cuid2(7);
|
||||
$this->id = new Cuid2();
|
||||
}
|
||||
if (is_null($this->name)) {
|
||||
$this->name = $this->id;
|
||||
|
||||
@@ -30,7 +30,7 @@ class Select extends Component
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
if (is_null($this->id)) {
|
||||
$this->id = new Cuid2(7);
|
||||
$this->id = new Cuid2();
|
||||
}
|
||||
if (is_null($this->name)) {
|
||||
$this->name = $this->id;
|
||||
|
||||
@@ -41,7 +41,7 @@ class Textarea extends Component
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
if (is_null($this->id)) {
|
||||
$this->id = new Cuid2(7);
|
||||
$this->id = new Cuid2();
|
||||
}
|
||||
if (is_null($this->name)) {
|
||||
$this->name = $this->id;
|
||||
|
||||
Reference in New Issue
Block a user