1. Christoffer Niska
  2. yii-bootstrap
  3. Issues
Issue #237 new

TbTabs events not bounded appropriately

Jerome Bosman
created an issue

If you define a custom id to the TbTabs widget using

'htmlOptions'=>array('id'=>'onboardTabs'),

show and shown events won't be bounded to it. Bug is in line 82 of TbTabs

$id = $this->id;

should be replaced with

$id = $this->htmlOptions['id'];

It's safe even we don't define the id attribute, because in init()

    if (!isset($this->htmlOptions['id']))
            $this->htmlOptions['id'] = $this->getId();

Hope this helps.

Comments (0)

  1. Log in to comment