select2 input not works in version 8.1.5 laravel version

Hi,

Select2 not work in version 8.1.5

this is my code:

<!--begin::Input group-->
<div class="form-floating col-3 mb-3 pe-4">
<select class="form-select "
data-control=select2
data-hide-search="true"
id=productAvailability
id="productAvailability"
placeholder="Select status"
name="productAvailability"
/>
<option value=null>All</option>
<option value="1">Available</option>
<option value="2">Unavailable</option>
<option value="3">Newest</option>
<option value="4">Special Offers</option>
<option value="5">Weekly Sales</option>
</select>
<label class="" for="productAvailability">Status</label>
</div>
<!--end::Input group-->

and this is result after updateL

also i upload before update screenshot:

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)

Hi Ali Sasani,

Thank you. We will check it and let you know the solution as soon as possible.

Thanks

Could you please try to remove this file?

resources/assets/core/js/layout/app.js

Then please recompile the assets npm run dev. This file shouldn't be there. We will remove it.

Thanks

It's fixed and working good, thanks for your follow-up.

But i have one question:

You add

js/init.js
to config file, but after build no file with this name in public folder. It's bug Or add in next version?

Hi,

You can remove it as well. We will fix the entry. init.js file is included in the scripts.bundle.js file.

Thanks

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(