Skip to content

jQueryUI incompatible with js/app.js #28984

Description

@mikestratton
  • Laravel Version: 5.8.*
  • PHP Version: 7.3.3
  • Database Driver & Version: mysqlnd 5.0.12-dev
    -- XAMPP Control Panel v3.2.3
    -- Windows 10
    -- Jetbrains PhpStorm

Description:

jQueryUI Datepicker works fine when ran outside of Laravel application. Here is the code: https://jqueryui.com/datepicker/ Implementing the same code from within any laravel blade view returns a "datepicker" not defined in the developers console(browser).

Commenting out the line:

{{--    <script src="{{ asset('js/app.js') }}" defer></script>--}}

in the app.blade.php file and the jquery date picker works.

Steps To Reproduce:

  1. Install Laravel 5.8 using the development environment stated in this message.
  2. php artisan make:auth
  3. Create a blade view with an input form for date.
  4. Add the code from https://jqueryui.com/datepicker/ to the blade view and/or app.blade.php.
  5. Run your blade view and check console - jQueryUI values are not being passed.
  6. Comment out the js/app.js as previously stated in this message.
  7. jQueryUI datepicker calendar will now work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions