kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
558 stars 302 forks source link

ExpandColumn on 3.5.0 disabled sub javascript bindings (?) #1055

Open tsdogs opened 1 year ago

tsdogs commented 1 year ago

Prerequisites

Steps to reproduce the issue

  1. Create an expand column with a button
  2. Bind a click event to the button class (es. $('.btn-class).on('click',function() {... )
  3. The event does not get binded (or gets unbinded)

Expected behavior and actual behavior

It should leave the event as is

When I follow those steps, I see... Looking at the result in the page all the buttons in the expand detail have only the yii js click event

I was expecting... To have 2 functions binded to the button (1 from yii e 1 from my bind)

Rolling back to 3.4.6 restores the correct behaviour

it might be related to #1021 but it defenatly is not a browser cache or anything (I have cleaned cache, assets and browser cache)

Environment

Browsers

Operating System

Libraries