TagsInput not displaying
public static function testingTag($getData)
{
if ($getData == "tag") {
return TagsInput::make('testing');
}
if ($getData == "text") {
return TextInput::make("testing");
}
return Select::make('testing');
}
Grid::make(3)
->schema(function (Closure $get) use ($form) {
$responseForm = [];
$select = Select::make('tagTest')
->options([
"tag" => "Tag",
"select" => "Select",
"text" => "text",
])
->reactive();
$responseForm[] = $select;
$tagTest = $get('tagTest');
if ($tagTest) {
$responseForm[] = self::testingTag($tagTest);
}
return $responseForm;
}), public static function testingTag($getData)
{
if ($getData == "tag") {
return TagsInput::make('testing');
}
if ($getData == "text") {
return TextInput::make("testing");
}
return Select::make('testing');
}
Grid::make(3)
->schema(function (Closure $get) use ($form) {
$responseForm = [];
$select = Select::make('tagTest')
->options([
"tag" => "Tag",
"select" => "Select",
"text" => "text",
])
->reactive();
$responseForm[] = $select;
$tagTest = $get('tagTest');
if ($tagTest) {
$responseForm[] = self::testingTag($tagTest);
}
return $responseForm;
}),i want to testing field based on what I am selecting in tagTest select field while other field is working fine but the TagsInput is not displaying