Questions tagged [choices.js]
The choices.js tag has no usage guidance, but it has a tag wiki.
choices.js
20
questions
0
votes
1
answer
25
views
choicesjs with shared blade view
i have a post livewire component in which has 2 child: createpost and updatepost. both createpost and updatepost has the same blade view and hence they render the same view:
return view('components....
0
votes
1
answer
19
views
Choices js with wire:model.live bespoke javascript
I'm currently using choices js for a searchable select but now, when i use it with live:model.live, after my result reload, the select changes to back to a normal select and can't be used as live ...
0
votes
1
answer
50
views
Limit the displayed search results to 10 (minimum) using Choices.js
I've adjusted the searchResultLimit option to 10 in my code, but only 4 results are displayed.
Here is my code:
<select name="category_id" id="category" class="form-control ...
0
votes
0
answers
137
views
Choices.js creates multiple instances for each wire:navigate
I am using choices.js on my laravel livewire app. choices.js is implemented with alpine.js.
I am loading this within a modal. Whenever I reload the page via "wire:navigate" there is a weird ...
1
vote
1
answer
457
views
choices-js filtering select options that only use numbers and blanks
I'm tring to enhance the following select field with choices-js:
<select class="form-select" id="telephone" aria-label="Default select example">
<option value=&...
1
vote
1
answer
1k
views
Cannot read properties of undefined (reading 'removeLoadingState') - Choices.js
I am trying to submit a form from a modal and the form is submitted through ajax. once the form is submitted some response is returned that regenerate the choices with the new values.
Laravel Blade ...
0
votes
1
answer
5k
views
Choices-js - programmatically change the selected value
I am using Choices-js to create a custom select element. The user can either use the select dropdown or some buttons to select their choice. On click of the button, I would like for the select ...
0
votes
0
answers
390
views
Choices.js search on disabled options
I have a choices.js single with some options disabled. I want the text search return also results of disabled options.
Any ideas to do it ?
(I use fuseOptions, but maybe it's filtered before call fuse)...
0
votes
0
answers
184
views
Choices-js select list is returning an array
i'm using choices-js select list and it's value is being an array like this
array:1 [▼ // app\Http\Livewire\Admin\Users\UserForm.php:56
"value" => "male"
]
and this is my ...
0
votes
1
answer
884
views
Clearing a "choices dropdown" using jQuery
I have a single select dropdown uses the choices library that includes a remove button and displays a variety of cities:
It's declared in the code as:
<select class="cities-dd" ...
-1
votes
1
answer
1k
views
How to add 'is-invalid' class on choices.js
I am currently using validate.js to validate my form and choices.min.js as a substitute instead of using select in order for me to have a proper search bar on select. I am currently testing the ...
0
votes
1
answer
2k
views
Choices.js with Livewire for multiple select
I'm new to Livewire after discovering it a few months back and I'm a bit rusty on Vanilla JS.
I have created a Livewire component to filter a table of news articles but I'm struggling to use the ...
0
votes
1
answer
359
views
How to validate if the event originated from a click on the "Remove Items" button or the "change of option" in a Choices JS component
In a Choices JS component, whenever an item is removed from the list or an item is selected, the 'changes' event is fired. The problem is that if I remove an item I need to run a specific code and if ...
0
votes
1
answer
975
views
How to load a select choice-js with data from the database
I need to load a select choice-js with a list of countries and display the flag images. After making the Ajax request, I get a json (result.countries) and I don't know how to load the properties ...
0
votes
0
answers
83
views
Images in svg format are not rendering inside select component - asp.net core mvc
I need to display a list of countries with their respective flags (they are stored in a database) within a select using the "choices" component, but the images are not rendered in the select....