Skip to content

Commit c018800

Browse files
committed
fix: add in select2 data attributes needed for ajax child and selected url
1 parent 2788efd commit c018800

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

resources/views/bootstrap-5/select.blade.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,18 @@
3838
data-select-child="{{ $child }}"
3939
@endif
4040

41+
@if($ajaxChild)
42+
data-ajax-child="{{ $ajaxChild }}"
43+
@endif
44+
4145
@if($ajaxUrl)
4246
data-select-ajax-url="{{ $ajaxUrl }}"
4347
@endif
4448

49+
@if($selectedUrl)
50+
data-selected-url="{{ $selectedUrl }}"
51+
@endif
52+
4553
@if($nameField)
4654
data-name-field="{{ $nameField }}"
4755
@endif

0 commit comments

Comments
 (0)