Skip to content

1.1.0

Choose a tag to compare

@drpshtiwan drpshtiwan released this 08 Nov 00:18
· 35 commits to main since this release

Version 1.1.0

✨ New Features

Selected Labels Without API Requests

Display selected labels immediately using value-labels - no API calls needed!

<livewire:async-select
    wire:model="categoryId"
    endpoint="/api/categories"
    :value-labels="[3 => 'Web Development']"
/>

Suffix Button with Modal Support

Suffix button now automatically closes dropdown when clicked - perfect for opening modals.

<livewire:async-select
    :suffix-button="true"
    suffix-button-action="showAddMediaModal"
/>

Automatic wire:model Default Values

No need to pass :value attribute - component automatically uses wire:model property value.

// Component
public $userId = 5;
<!-- No :value needed -->
<livewire:async-select wire:model="userId" :options="$users" />

🔧 Improvements

  • Zero API requests with value-labels
  • Better modal UX with suffix button
  • Simplified default value handling
  • Updated documentation

⚠️ Breaking Changes

None. Fully backward compatible.