[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[x] The issue still exists against the latest master branch of yii2-grid.
[x] This is not an usage question. I confirm having gone through and read the documentation and demos.
[x] This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
[x] I have attempted to find the simplest possible steps to reproduce the issue.
[ ] I have included a failing test as a pull request (Optional).
Steps to reproduce the issue
Trying to creat a Select2 filter with multiple and allowClear plugin options. Everything works except when 'x' is clicked to clear all items. In the console I can see the following error:
Uncaught TypeError: Cannot read property 'id' of undefined
at DecoratedClass.AllowClear._handleClear (select2.full.js?v=1579937348:1886)
at DecoratedClass._handleClear (select2.full.js?v=1579937348:598)
...
I'm using the following code to render the widget:
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.
Prerequisites
master
branch of yii2-grid.Steps to reproduce the issue
Trying to creat a Select2 filter with multiple and allowClear plugin options. Everything works except when 'x' is clicked to clear all items. In the console I can see the following error:
I'm using the following code to render the widget:
If the placeholder plugin option is added the 'x' is working and there is no error in console window.
Environment
Browsers
Operating System
Libraries
Isolating the problem