diff --git a/src/FlatpickrAsset.php b/src/FlatpickrAsset.php index 5bc8a51..6b5d17d 100644 --- a/src/FlatpickrAsset.php +++ b/src/FlatpickrAsset.php @@ -2,6 +2,8 @@ namespace cgsmith\flatpickr; +use yii\web\JqueryAsset; + class FlatpickrAsset extends \yii\web\AssetBundle { public $js = [ @@ -11,4 +13,8 @@ class FlatpickrAsset extends \yii\web\AssetBundle public $css = [ '//cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css', ]; + + public $depends = [ + JqueryAsset::class, + ]; } \ No newline at end of file