Skip to content

Commit e4a2035

Browse files
committed
customSelected slot bug fix.
1 parent d417028 commit e4a2035

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
All notable changes to `laravel-simple-select` will be documented in this file
44

5+
## v1.2.3 - 2021-08-11
6+
7+
- `customSelected` Slot Bug fix.
8+
9+
## v1.2.2 - 2021-08-04
10+
11+
- Popper positioning bug fix
12+
13+
## v1.2.1 - 2021-07-26
14+
15+
- wire:model and popper bug fix.
16+
517
## v1.2.0 - 2021-06-26
618

719
- Added `customSelected` Slot.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Alpine.start()
9090

9191
window.createPopper = createPopper;
9292
```
93-
If you’re not using a compiled JavaScript, don’t forget to include CDN versions of the JavaScript Dependencies before it.
93+
If you’re using the compiled JavaScript, don’t forget to include CDN versions of the JavaScript Dependencies before it.
9494

9595
<a name="usage"></a>
9696

resources/views/components/simple-select.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class="w-6"
8888
<div class="w-full px-2 truncate">
8989
@isset($customSelected)
9090
<span x-data="{ option: getOptionFromSelectedValue(selected) }">
91-
<template x-if="(typeof option === 'string' && option.length > 0) || (typeof option === 'object' && Object.keys(option).length > 0)">
91+
<template x-if="option !== null && ((typeof option === 'string' && option.length > 0) || (typeof option === 'object' && Object.keys(option).length > 0))">
9292
<span>{{ $customSelected }}</span>
9393
</template>
9494
</span>

src/SimpleSelectServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public function boot()
4545
// Registering package commands.
4646
// $this->commands([]);
4747
}
48-
48+
49+
// Registering the blade components.
4950
Blade::component(config('simple-select.component-name', 'simple-select'), SimpleSelect::class);
5051
}
5152

0 commit comments

Comments
 (0)