Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Select #467

Open
bardolf69 opened this issue Jul 6, 2023 · 0 comments
Open

Issues with Select #467

bardolf69 opened this issue Jul 6, 2023 · 0 comments

Comments

@bardolf69
Copy link

bardolf69 commented Jul 6, 2023

  • Laravel Version: 10.14.1
  • PHP Version: 8.1.17
  • Splade JS Version (npm): 1.4.15
  • Splade PHP Version (composer): 1.4.15.1
  • Dev environment (OS, Sail/Valet/etc): Alpine linux running in a docker container on Google Cloud Run

Description:

select-first-remote-option and reset-on-new-remote-url do not appear to be doing anything on select input

Steps To Reproduce Issue:

I have 3 dependant selects

<x-splade-select name="lcountry" label="Country" remote-url="`/api/csc?type=1`" placeholder="{{ __('Select your Country') }}" choices="{ shouldSort: true }" class="lg:col-span-2"/>
<x-splade-select name="lstate" label="State/Province" remote-url="`/api/csc?type=2&country=${form.lcountry}`" select-first-remote-option reset-on-new-remote-url choices="{ shouldSort: true }" class="lg:col-span-2"/>
<x-splade-select name="city_id" label="City" remote-url="`/api/csc?type=3&country=${form.lcountry}&state=${form.lstate}`" select-first-remote-option reset-on-new-remote-url choices="{ shouldSort: true }" class="lg:col-span-2"/>

When the Country value is null the API returns '{"1":"Please Select Country First"}' to the lstate and city_id selects and it is shown in the options list but nothing is displayed in these selects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant