Datepicker issues with 4.19.1 gulp


Topic: Datepicker issues with 4.19.1 gulp

asavells12 asked 4 years ago

Expected behavior

Datepicker initialized.

Actual behavior

Datepicker is not initialized after using gulp to generate custom .js files. However, it does work when using the generic 4.19.1 mdb.js.

Resources (screenshots, code snippets etc.)

Example of how js is loaded.
<script type="text/javascript" src="{{ URL::asset('js/jquery-3.4.1.min.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('js/popper.min.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('js/bootstrap.min.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('js/mdb.js') }}"></script>

enter image description here


asavells12 answered 4 years ago

Found a fix by adding a picker alias to my webpack config.


Grzegorz Bujański staff commented 4 years ago

I'm glad you found the solution


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: PC
  • Browser: Chromve/Brave
  • OS: Windows
  • Provided sample code: No
  • Provided link: No