You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
I encountered the same problem and eventually came to a solution.
You can extend the component and the assets file.
Then call your own asset file in the registerClientScript() method of the component and override the original assets call doing:
publicfunctioninit()
{
parent::init();
// resetting BootstrapAsset to not load own css and js files
\Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapAsset'] = [
'css' => [],
'js' => []
];
}
I use Bootstrap 4 (throgh a component). After I start using your component, Bootstrap 3 connects and my styles get overriden.
It happens because your component uses dependency in src/SelectizeAsset.php
'yii\bootstrap\BootstrapAsset'
Is it possible to remove this dependency or make it optional?
PS: also it would be great to be able to disconnect/change (in src/SelectizeAsset.php) css-file
'css/selectize.bootstrap3.css'
The text was updated successfully, but these errors were encountered: