kartik-v / yii2-detail-view

Various enhancements to the Yii 2 Detail View with ability to edit data and manage styles using BS3.
http://demos.krajee.com/detail-view
Other
70 stars 56 forks source link

Button panels not working when DetailView is inside jQuery Steps #177

Closed ecmciasabellano closed 3 years ago

ecmciasabellano commented 4 years ago

I am using DetailView inside a jQuery Steps.

When I am clicking on the edit button, it does not do anything, no errors. I guess the handlers are not attached to it. I do not know why this is happening. But if I move it outside the div that contains jQuery steps, it is working.

Is there any alternative way to use this inside jQuery Steps or any way to attach the handlers on the button so it will work?

Here is my code:

<?= DetailView::widget([
    'model' => $shipping,
    'panel' => [
        'heading' => "Shipping Address",
        "type" => DetailView::TYPE_INFO
    ],
    'enableEditMode' => true,
    'buttons1' => '{update}',
    'buttons2' => '{save}',
    'attributes' => [
        'name',
        'address1',
        'address2',
        'address3',
        'postcode',
        'state_id',
        'country_id', 
    ]
]); ?>

Thank you.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.