-
-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: mentions list not showing on the edit mode
- Loading branch information
Showing
5 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
@props(['autocomplete' => false]) | ||
@props(['autocomplete' => false, 'id' => null]) | ||
@php | ||
$componentId = $id ?? Str::uuid(); | ||
@endphp | ||
<textarea | ||
{!! $attributes->merge(['class' => 'w-full dark:text-white text-black dark:caret-white caret-black focus:border-pink-500 dark:border-slate-800 border-slate-300 dark:bg-slate-900/50 bg-slate-50/50 backdrop-blur-sm dark:focus:ring-slate-900 focus:ring-slate-100 rounded-lg shadow-sm sm:text-sm']) !!} | ||
@if ($autocomplete === true) | ||
x-data="usesDynamicAutocomplete" | ||
x-data="usesDynamicAutocomplete('{{ $componentId }}')" | ||
x-bind="autocompleteInputBindings" | ||
@endif | ||
> | ||
{{ $slot }} | ||
</textarea> | ||
|
||
@if ($autocomplete === true) | ||
<livewire:autocomplete></livewire:autocomplete> | ||
<livewire:autocomplete :componentId="$componentId"></livewire:autocomplete> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters