File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class Breadcrumbs extends Component
17
17
* @param ?string $textItemClass The classes that should be applied to each item without a link.
18
18
* @param ?string $iconClass The classes that should be applied to each items icon.
19
19
* @param ?string $separatorClass The classes that should be applied to each separator.
20
+ * @param ?bool $noWireNavigate If true, the component will not use wire:navigate on links.
20
21
*/
21
22
public function __construct (
22
23
public ?string $ id = null ,
@@ -26,6 +27,7 @@ public function __construct(
26
27
public ?string $ textItemClass = "text-sm " ,
27
28
public ?string $ iconClass = "h-4 w-4 " ,
28
29
public ?string $ separatorClass = "h-3 w-3 mx-1 text-base-content/40 " ,
30
+ public ?bool $ noWireNavigate = false ,
29
31
) {
30
32
$ this ->uuid = "mary " . md5 (serialize ($ this )) . $ id ;
31
33
}
@@ -61,7 +63,7 @@ public function render(): View|Closure|string
61
63
>
62
64
63
65
@if ($element['link'] ?? null)
64
- <a href="{{ $element['link'] }}" @class([$linkItemClass])>
66
+ <a href="{{ $element['link'] }}" @if(!$noWireNavigate) wire:navigate @endif @ class([$linkItemClass])>
65
67
@else
66
68
<span @class([$textItemClass])>
67
69
@endif
You can’t perform that action at this time.
0 commit comments