tabsX.click plugin event not working after updating package
chaslain opened this issue · 2 comments
chaslain commented
Prerequisites
- I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- The issue still exists against the latest
master
branch of yii2-tabs-x. - This is not an usage question. I confirm having gone through and read the documentation and demos.
- This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
- I have attempted to find the simplest possible steps to reproduce the issue.
- I have included a failing test as a pull request (Optional).
$tabsXClick = "
function()
{
console.log('clicked');
}
";
echo TabsX::widget([
"pluginEvents" => ["tabsX.click" => $tabsXClick],
// rest of configuration here....
]);
Expected behavior and actual behavior
When I follow those steps, I see...
I was expecting...
Environment
Browsers
- Google Chrome
- Mozilla Firefox
- Internet Explorer
- Safari
Operating System
- Windows
- Mac OS X
- Linux
- Mobile
Libraries
- jQuery version: no version specified in bower, assuming most recent
- yii2-tabs-x version: 1.2.8
Isolating the problem
- This bug happens on the demos page
- The bug happens consistently across all tested browsers
- This bug happens when using yii2-tabs-x without other plugins.
stale commented
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.
KennyChan94P commented
instead of "tabsX.click" => $tabsXClick, you can try with "tabsX:click" => $tabsXClick
it should be a typo, instead of ".", use ":"