Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depdrop bootstrap 4 error #376

Open
mtc-toolbox opened this issue Feb 14, 2019 · 1 comment
Open

Depdrop bootstrap 4 error #376

mtc-toolbox opened this issue Feb 14, 2019 · 1 comment

Comments

@mtc-toolbox
Copy link

mtc-toolbox commented Feb 14, 2019

  1. Using bootstrap 4.
    In bootstrap 3 (from box All ok).

Dep drop code:

echo $form->field($pointModel, 'Country')->dropDownList($countryList, ['id' => 'point-country-id']);

    echo $form->field($pointModel, 'Region')->widget(DepDrop::classname(), [
        'type'           => DepDrop::TYPE_SELECT2,
        'data'           => $regionsList,
        'options'        => [
            'id'          => 'point-region-id',
            'placeholder' => Yii::t('app', 'Select ...'),
        ],
        'select2Options' => [
            'pluginOptions' => [
                'allowClear' => true,
            ],
        ],
        'pluginOptions'  => [
            'depends'     => ['point-country-id'],
            'url'         => Url::to(['region/list']),
            'loadingText' => 'Загрузка ...',
        ],
    ]);

In first step I saw (attached image).
image

When I select new country I send:
{"output":[{"id":"0f910fc4-3da9-53ff-aa51-61d63e27ba33","name":"Крым"},{"id":"a8c49954-a8e9-55fd-b10f-0cf8ffd298fb","name":"Краснодарский Край"}],"selected":"0f910fc4-3da9-53ff-aa51-61d63e27ba33"}

And see:
image

Why ?!

In bootstrap 3 all fine.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@mtc-toolbox
Copy link
Author

May be any scripts I must include ?

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

No branches or pull requests

1 participant