Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Is it compatible with bootstrap 4? #23

Open
baltechies opened this issue Mar 4, 2020 · 2 comments
Open

Is it compatible with bootstrap 4? #23

baltechies opened this issue Mar 4, 2020 · 2 comments

Comments

@baltechies
Copy link

I am facing issue on mobile devices. Select dropdown is open by default and its not closing after selecting. on bigger screens its working

@ghost
Copy link

ghost commented Apr 17, 2020

It is not compatible but for now you can just extend it and by changing assets will do the trick .


class MultiSelectAsset extends AssetBundle
{
    public $sourcePath = '@npm/bootstrap-multiselect/dist';

    public $js = [
        'js/bootstrap-multiselect.js'
    ];

    public $css = [
        'css/bootstrap-multiselect.css'
    ];

    public $depends = [
        'yii\bootstrap4\BootstrapPluginAsset'
    ];
}

change 'yii\bootstrap\BootstrapPluginAsset'
with 'yii\bootstrap4\BootstrapPluginAsset'

@steve962
Copy link

steve962 commented Feb 3, 2021

...which is pretty easily done by merging the following into your config components section to override the plugin dependency.:

'assetManager' => [
    'class' => 'yii\web\AssetManager',
    'bundles' => [
        'dosamigos\multiselect\MultiSelectAsset' => [
            'depends' => [ 'yii\bootstrap4\BootstrapPluginAsset' ],
        ],
    ],
],

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

No branches or pull requests

2 participants