CustomBladeService fixing issues introduced in previous commit

This commit is contained in:
Deon George 2024-07-05 10:19:27 +10:00
parent a69049c4ff
commit b5c8e41e78

View File

@ -252,7 +252,7 @@ class CustomBladeServiceProvider extends ServiceProvider
$key = $type.':'.$option;
switch ($option) {
case 'autofocus':
$js->put($key,'plugin/select2/fix-autofocus.js');
$js->put($key,'/plugin/select2/fix-autofocus.js');
break;
default:
@ -308,7 +308,7 @@ class CustomBladeServiceProvider extends ServiceProvider
}
if ($js->count())
$return = $return->merge($js->map(fn($item)=>sprintf('<script type="text/javascript" src="%s">',$item)));
$return = $return->merge($js->map(fn($item)=>sprintf('<script type="text/javascript" src="%s"></script>',$item)));
if ($css->count())
$return = $return->merge($css->map(fn($item)=>sprintf('<link rel="stylesheet" href="%s">',$item)));